summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-11-05 16:36:36 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-11-05 16:36:36 -0500
commitadaae4b617f2832761fc4f24f1f164567d4e81c5 (patch)
treeb17e57bc64358b22c52c33c983cbb10b28f4e685
parent80f44dce5df3770ac544a6f72e4f2afbafb4da80 (diff)
downloadselphy_print-adaae4b617f2832761fc4f24f1f164567d4e81c5.tar.gz
selphy_print-adaae4b617f2832761fc4f24f1f164567d4e81c5.tar.bz2
selphy_print-adaae4b617f2832761fc4f24f1f164567d4e81c5.zip
common: Log the IEEE1284 ID in DEBUG >= 2
-rw-r--r--backend_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend_common.c b/backend_common.c
index 42a74b5..3b0d2ae 100644
--- a/backend_common.c
+++ b/backend_common.c
@@ -31,7 +31,7 @@
#include <errno.h>
#include <signal.h>
-#define BACKEND_VERSION "0.97"
+#define BACKEND_VERSION "0.98"
#ifndef URI_PREFIX
#error "Must Define URI_PREFIX"
#endif
@@ -152,6 +152,11 @@ char *get_device_id(struct libusb_device_handle *dev, int iface)
memmove(buf, buf + 2, length);
buf[length] = '\0';
+ /* Don't forget to log! */
+ if (dyesub_debug > 2) {
+ DEBUG("IEEE1284: %s\n", buf);
+ }
+
done:
return buf;
}