summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/ptyc_driver_ctx.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c
index cf9b170..7b0b596 100644
--- a/src/driver/ptyc_driver_ctx.c
+++ b/src/driver/ptyc_driver_ctx.c
@@ -205,17 +205,21 @@ int ptyc_get_driver_ctx(
break;
case TAG_DEBUG:
- if (!entry->arg)
+ if (!entry->arg) {
cctx.drvflags |= PTYC_DRIVER_DBG_EVENT;
- else if (!strcmp("event",entry->arg))
+ } else if (!strcmp("event",entry->arg)) {
cctx.drvflags |= PTYC_DRIVER_DBG_EVENT;
- else if (!strcmp("oven",entry->arg))
+ } else if (!strcmp("oven",entry->arg)) {
+ cctx.drvflags &= ~(uint64_t)PTYC_DRIVER_DBG_RAW;
cctx.drvflags |= PTYC_DRIVER_DBG_OVEN;
- else if (!strcmp("raw",entry->arg))
+ } else if (!strcmp("raw",entry->arg)) {
+ cctx.drvflags &= ~(uint64_t)PTYC_DRIVER_DBG_OVEN;
cctx.drvflags |= PTYC_DRIVER_DBG_RAW;
+ }
+
break;
case TAG_CAT: