From 83847012f9b0a0d479725d4741c551c88d7035c2 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周六, 25 4月 2015 22:54:36 +0800 Subject: [PATCH] Solve #16 Multiple Identical Capabilities --- libscpi/src/debug.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libscpi/src/debug.c b/libscpi/src/debug.c index 1a9de52..15c050c 100644 --- a/libscpi/src/debug.c +++ b/libscpi/src/debug.c @@ -35,7 +35,6 @@ */ #include <stdio.h> -#include <inttypes.h> #include "scpi/debug.h" /** @@ -43,12 +42,12 @@ * @param context * @return */ -bool_t SCPI_DebugCommand(scpi_t * context) { +scpi_bool_t SCPI_DebugCommand(scpi_t * context) { size_t res; - printf("**DEBUG: %s (\"", context->paramlist.cmd->pattern); - res = fwrite(context->paramlist.parameters, 1, context->paramlist.length, stdout); + printf("**DEBUG: %s (\"", context->param_list.cmd->pattern); + res = fwrite(context->param_list.lex_state.buffer, 1, context->param_list.lex_state.len, stdout); (void)res; - printf("\" - %" PRIu32 "\r\n", (uint32_t)context->paramlist.length); + printf("\" - %lu\r\n", (unsigned long)context->param_list.lex_state.len); return TRUE; } -- Gitblit v1.9.1