gpio.c: add DEBUG message for owner flag
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 10 Feb 2015 15:39:45 +0000 (15:39 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 10 Feb 2015 15:40:02 +0000 (15:40 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/gpio/gpio.c

index ec7f897..bbcccba 100644 (file)
@@ -573,8 +573,10 @@ mraa_gpio_close(mraa_gpio_context dev)
 mraa_result_t
 mraa_gpio_owner(mraa_gpio_context dev, mraa_boolean_t own)
 {
-    if (dev == NULL)
+    if (dev == NULL) {
         return MRAA_ERROR_INVALID_RESOURCE;
+    }
+    syslog(LOG_DEBUG, "gpio: Set owner to %d", (int) own);
     dev->owner = own;
     return MRAA_SUCCESS;
 }