From fea1b83bd5e116bdc7e92dab8677a976e3100ba1 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 6 Mar 2016 14:16:19 -0500 Subject: driver: added context initialization for --debug. --- include/slibtool/slibtool.h | 1 + src/driver/slbt_driver_ctx.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index a1fd6b2..fa808b9 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -36,6 +36,7 @@ extern "C" { #define SLBT_DRIVER_VERSION 0x0010 #define SLBT_DRIVER_DRY_RUN 0x0020 #define SLBT_DRIVER_CONFIG 0x0040 +#define SLBT_DRIVER_DEBUG 0x0080 /* execution modes */ enum slbt_mode { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index f75e2b4..16f9687 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -167,6 +167,9 @@ int slbt_get_driver_ctx( cctx.drvflags |= SLBT_DRIVER_CONFIG; break; + case TAG_DEBUG: + cctx.drvflags |= SLBT_DRIVER_DEBUG; + break; } } else nunits++; -- cgit v1.2.3