From 7307c5eee83cbc76de38ab768000dccbae2bf11e Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 13 Jul 2016 20:38:49 -0400 Subject: driver: make --debug=raw and --debug=oven mutually exclusive. --- src/driver/ptyc_driver_ctx.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/driver') 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: -- cgit v1.2.3