[oe-commits] Richard Tollerton : udev-cache: Clean up message when cache is invalidated

git at git.openembedded.org git at git.openembedded.org
Fri Dec 19 18:09:06 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: d768772a1259d3659d0424c39e65eeb3443af86c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d768772a1259d3659d0424c39e65eeb3443af86c

Author: Richard Tollerton <rich.tollerton at ni.com>
Date:   Wed Dec 10 22:59:06 2014 -0600

udev-cache: Clean up message when cache is invalidated

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 at ni.com>

---

 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



More information about the Openembedded-commits mailing list