weston-ready: increase verbosity 31/19931/3
authorStephane Desneux <stephane.desneux@iot.bzh>
Mon, 7 Jan 2019 18:09:44 +0000 (18:09 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 18 Feb 2019 10:41:38 +0000 (10:41 +0000)
This patch adds some log output to know when weston is ready
or when a timeout is reached.

Change-Id: I217aa26a0b9d3b46e73dc55bef8dbc3e673c53c4
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready

index 5a3ff55..c7cba30 100644 (file)
@@ -23,6 +23,8 @@
 usage="Usage: weston-ready [-t timeout]" 
 timeout=0
 
+function info() { echo "$@" >&2; }
+
 if [ $# -eq 2 ]; then
        if [ $1 = "-t" ]; then
                timeout=$(($2 * 10))
@@ -32,15 +34,20 @@ if [ $# -eq 2 ]; then
        fi
 fi
 
+info "using timeout $timeout"
+
 time=0
 rc=1
 while true; do
        if [ $time -gt $timeout ]; then
+               info "Timeout reached"
                break
        elif LayerManagerControl get screens >/dev/null 2>&1; then
+               info "Weston is now ready"
                rc=0
                break
        fi
+       info "waiting..."
        if [ $timeout -gt 0 ]; then
                usleep 500000
        fi