| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2020-01-07 11:06:51 +0100 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2020-01-07 11:06:51 +0100 |
| commit | 99fc3898606bf9bc2a732facffc1a6fe6bfcf3a2 (patch) | |
| tree | 7ca296de2a78a500b838d9a5d5a5fa3c0523fa18 /src/device | |
| parent | 11138ae4e8e3ed2f01156189923f7904c8f21591 (diff) | |
...
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); |


