]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev-cache: Clean up message when cache is invalidated
authorRichard Tollerton <rich.tollerton@ni.com>
Thu, 11 Dec 2014 04:59:06 +0000 (22:59 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 17:54:15 +0000 (17:54 +0000)
Replace a bunch of echo's with a single cat<<EOF. Take this opportunity
to more clearly communicate what is going on with the cache and what
files are being looked at.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
meta/recipes-core/udev/udev/init

index 96578bc15bfc6d72cc829cd753ed88ba39dc9480..9a8b09d34d3a8b5eae19b054e9873ed6ebef2976 100644 (file)
@@ -74,10 +74,13 @@ case "$1" in
                     else
                            # Output detailed reason why the cached /dev is not used
                            if [ "$VERBOSE" != "no" ]; then
-                                   echo "udev: udev cache not used"
-                                   echo "udev: we use $CMP_FILE_LIST as criteria to judge whether the cache /dev could be resued"
-                                   echo "udev: cached sysconf:  $SYSCONF_CACHED"
-                                   echo "udev: current sysconf: $SYSCONF_TMP"
+                                   cat <<EOF
+udev: Not using udev cache because of changes detected in the following files:
+udev:     $CMP_FILE_LIST
+udev: The udev cache will be regenerated. To identify the detected changes,
+udev: compare the cached sysconf at   $SYSCONF_CACHED
+udev: against the current sysconf at  $SYSCONF_TMP
+EOF
                            fi
                            touch "$DEVCACHE_REGEN"
                     fi