diff options
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/init_wslua.c | 3 | ||||
-rw-r--r-- | epan/wslua/wslua_internals.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c index cd71e2a5d6..dd57474377 100644 --- a/epan/wslua/init_wslua.c +++ b/epan/wslua/init_wslua.c @@ -34,6 +34,7 @@ #include <epan/ex-opt.h> #include <wsutil/privileges.h> #include <wsutil/file_util.h> +#include <wsutil/ws_printf.h> /* ws_debug_printf */ /* linked list of Lua plugins */ typedef struct _wslua_plugin { @@ -689,7 +690,7 @@ print_wslua_plugin_description(const char *name, const char *version, const char *description, const char *filename, void *user_data _U_) { - printf("%s\t%s\t%s\t%s\n", name, version, description, filename); + ws_debug_printf("%s\t%s\t%s\t%s\n", name, version, description, filename); } void diff --git a/epan/wslua/wslua_internals.c b/epan/wslua/wslua_internals.c index 53c57f8ec8..782d5bae68 100644 --- a/epan/wslua/wslua_internals.c +++ b/epan/wslua/wslua_internals.c @@ -28,6 +28,7 @@ #include "config.h" #include "wslua.h" +#include <wsutil/ws_printf.h> /* ws_debug_printf */ WSLUA_API int wslua__concat(lua_State* L) { /* Concatenate two objects to a string */ @@ -180,9 +181,9 @@ WSLUA_API void wslua_print_stack(char* s, lua_State* L) { int i; for (i=1;i<=lua_gettop(L);i++) { - printf("%s-%i: %s\n",s,i,lua_typename (L,lua_type(L, i))); + ws_debug_printf("%s-%i: %s\n",s,i,lua_typename (L,lua_type(L, i))); } - printf("\n"); + ws_debug_printf("\n"); } /* C-code function equivalent of the typeof() function we created in Lua. |