code cleanup: consequently use "W:" for warnings.

The only exception is log_warning_msg() inside scripts/functions
which is/can be used by external scripts.

Signed-off-by: Michael Prokop <mika@debian.org>
This commit is contained in:
Michael Prokop 2010-06-14 12:17:51 +02:00
parent ab28c77261
commit 3a02c6f37d
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
catenate_cpiogz() {
# Sanity check
if [ ! -e "${1}" ]; then
echo "W:catenate_cpiogz: arg1='${1}' does not exist." >&2
echo "W: catenate_cpiogz: arg1='${1}' does not exist." >&2
return
fi
@ -29,7 +29,7 @@ add_modules_from_file()
{
# Sanity check
if [ ! -e "${1}" ]; then
echo "W:add_modules_from_file: arg1='${1}' does not exist." >&2
echo "W: add_modules_from_file: arg1='${1}' does not exist." >&2
return
fi

View File

@ -20,7 +20,7 @@ if [ "${BUSYBOX}" = "n" ] || [ ! -e ${BUSYBOXDIR}/busybox ]; then
# those root need busybox
eval "$(mount | awk '/ \/ / {print "r_dev=" $1; exit}')"
if [ "${r_dev#/dev/mapper/}" != "${r_dev}" ]; then
echo "Warning: Busybox is required for successful boot!"
echo "W: Busybox is required for successful boot!"
fi
else
. /usr/share/initramfs-tools/hook-functions

View File

@ -224,8 +224,8 @@ list)
# nothing to add
;;
*)
echo "mkinitramfs: Warning unsupported MODULES setting: ${MODULES}."
echo "mkinitramfs: Falling back to MODULES=most."
echo "W: mkinitramfs: unsupported MODULES setting: ${MODULES}."
echo "W: mkinitramfs: Falling back to MODULES=most."
auto_add_modules
;;
esac
@ -286,7 +286,7 @@ run_scripts "${CONFDIR}"/hooks
# cache boot run order
if [ -n "$NOEXEC" ]; then
echo "Warning: TMPDIR is mounted noexec, will not cache run scripts."
echo "W: TMPDIR is mounted noexec, will not cache run scripts."
else
for b in $(cd "${DESTDIR}/scripts" && find . -mindepth 1 -type d); do
cache_run_scripts "${DESTDIR}" "/scripts/${b#./}"