resource-asm: print error string.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 28 Nov 2012 08:59:01 +0000 (10:59 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:09 +0000 (18:37 +0200)
src/plugins/resource-asm/asm-bridge.c

index 62b119d..8aba9cf 100644 (file)
@@ -32,6 +32,8 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
+#include <errno.h>
 
 #include <pthread.h>
 
@@ -81,7 +83,7 @@ static void *wait_queue (void *arg) {
 
         if (ret < 0) {
             /* FIXME: proper error handling */
-            mrp_log_error("error receiving a message!");
+            mrp_log_error("error receiving a message: '%s'!", strerror(errno));
             continue;
         }