From 2e1c15baa3f8696178ca63c53458ae8040a210c9 Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Tue, 28 Oct 2014 13:28:04 -0400 Subject: [PATCH] xpp: astribank_is_starting: improve '-v' output Do print a message if no semaphore exists. It means that either there are no Astribanks, or existing Astribanks were already initialized. Signed-off-by: Tzafrir Cohen --- xpp/astribank_is_starting.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpp/astribank_is_starting.c b/xpp/astribank_is_starting.c index 072004f..da565c9 100644 --- a/xpp/astribank_is_starting.c +++ b/xpp/astribank_is_starting.c @@ -125,6 +125,8 @@ static int absem_detected(void) if((absem = absem_get(0)) < 0) { if(debug) fprintf(stderr, "%s: absem does not exist\n", progname); + if(verbose) + printf("No Astribanks are initializing\n"); return absem; } if(debug)