From 99fc3898606bf9bc2a732facffc1a6fe6bfcf3a2 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 7 Jan 2020 11:06:51 +0100 Subject: ... --- src/device/axis/axis_option.c | 8 +++++--- src/device/physical/physical_device.c | 7 ++++++- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src/device') diff --git a/src/device/axis/axis_option.c b/src/device/axis/axis_option.c index fd1cb9c..1d68b78 100644 --- a/src/device/axis/axis_option.c +++ b/src/device/axis/axis_option.c @@ -4,6 +4,8 @@ /**** RELABSD *****************************************************************/ #include +#include + #include /******************************************************************************/ @@ -25,7 +27,7 @@ int relabsd_axis_enable_option_from_name ) { - if (strcmp(option_name, "direct") == 0) + if (RELABSD_IS_PREFIX("direct", option_name)) { axis->flags[RELABSD_DIRECT] = 1; @@ -38,11 +40,11 @@ int relabsd_axis_enable_option_from_name ); } } - else if (strcmp(option_name, "real_fuzz") == 0) + else if (RELABSD_IS_PREFIX("real_fuzz", option_name)) { axis->flags[RELABSD_REAL_FUZZ] = 1; } - else if (strcmp(option_name, "framed") == 0) + else if (RELABSD_IS_PREFIX("framed", option_name)) { axis->flags[RELABSD_FRAMED] = 1; diff --git a/src/device/physical/physical_device.c b/src/device/physical/physical_device.c index ca6f595..1bf3326 100644 --- a/src/device/physical/physical_device.c +++ b/src/device/physical/physical_device.c @@ -60,7 +60,12 @@ int relabsd_physical_device_open { int err; - RELABSD_S_DEBUG(RELABSD_DEBUG_PROGRAM_FLOW, "Opening physical device..."); + RELABSD_DEBUG + ( + RELABSD_DEBUG_PROGRAM_FLOW, + "Opening physical device %s...", + filename + ); errno = 0; device->file = open(filename, O_RDONLY); -- cgit v1.2.3-70-g09d2