| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/axis/axis_option.c | 8 | ||||
| -rw-r--r-- | src/device/physical/physical_device.c | 7 |
2 files changed, 11 insertions, 4 deletions
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 <relabsd/debug.h> +#include <relabsd/util/string.h> + #include <relabsd/device/axis.h> /******************************************************************************/ @@ -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); |


