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 <[email protected]>
---
 meta/recipes-core/udev/udev/init | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 96578bc..9a8b09d 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -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
-- 
2.1.3

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to