changes for actubent - not compiling!
FossilOrigin-Name: adf99bdc2ee784a4acf4066b90c33fb1e6124e8c49c255d3fd5011bb33852d52
This commit is contained in:
25
src/cw/dbg.c
25
src/cw/dbg.c
@ -27,6 +27,7 @@
|
||||
*/
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "mbag.h"
|
||||
#include "capwap.h"
|
||||
#include "dbg.h"
|
||||
#include "sock.h"
|
||||
@ -166,7 +167,6 @@ static const char *get_dbg_color_off(int level)
|
||||
static const char *get_dbg_prefix(int level)
|
||||
{
|
||||
return cw_strlist_get_str(prefix, level);
|
||||
|
||||
}
|
||||
|
||||
static const char *get_dbg_color_ontext(int level)
|
||||
@ -627,9 +627,9 @@ int cw_format_item(char *dst, mbag_item_t * item)
|
||||
{
|
||||
*dst = 0;
|
||||
if (item->type == MBAG_BSTR16) {
|
||||
strncpy(dst, (char *) bstr16_data(item->data), bstr16_len(item->data));
|
||||
*(dst + bstr16_len(item->data)) = 0;
|
||||
return bstr16_len(item->data);
|
||||
strncpy(dst, (char *) bstr16_data(item->u2.data), bstr16_len(item->u2.data));
|
||||
*(dst + bstr16_len(item->u2.data)) = 0;
|
||||
return bstr16_len(item->u2.data);
|
||||
|
||||
|
||||
}
|
||||
@ -693,6 +693,23 @@ void cw_dbg_version_subelem(int level, const char *context, int subtype, bstrv_t
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
void dbg_istore_dmp(mbag_t s)
|
||||
{
|
||||
|
Reference in New Issue
Block a user