adding print_hexbuf_no_asci without asci content
This commit is contained in:
parent
d059ee1eae
commit
40fce431f0
2 changed files with 15 additions and 0 deletions
|
|
@ -109,6 +109,20 @@ void print_hexbuf(int level, unsigned char *title, unsigned char *buf, int len)
|
||||||
fprintf(dlog_file, "\n");
|
fprintf(dlog_file, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void print_hexbuf_no_asci(int level, unsigned char *title, unsigned char *buf, int len)
|
||||||
|
{
|
||||||
|
int j, k;
|
||||||
|
if (level > g_debug_level) return;
|
||||||
|
fprintf(dlog_file, "%s", title);
|
||||||
|
for(j = 0, k = 0; j < len; j++, k++) {
|
||||||
|
fprintf(dlog_file, "%02x ", buf[j]);
|
||||||
|
if (((k+1) % 10 == 0 && k > 0)) {
|
||||||
|
fprintf(dlog_file, "\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fprintf(dlog_file, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
void print_create_attributes(int level, DWORD create_opts) {
|
void print_create_attributes(int level, DWORD create_opts) {
|
||||||
if (level > g_debug_level) return;
|
if (level > g_debug_level) return;
|
||||||
fprintf(dlog_file, "create attributes: ");
|
fprintf(dlog_file, "create attributes: ");
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ void set_debug_level(int level);
|
||||||
void dprintf(int level, LPCSTR format, ...);
|
void dprintf(int level, LPCSTR format, ...);
|
||||||
void eprintf(LPCSTR format, ...);
|
void eprintf(LPCSTR format, ...);
|
||||||
|
|
||||||
|
void print_hexbuf_no_asci(int on, unsigned char *title, unsigned char *buf, int len);
|
||||||
void print_hexbuf(int level, unsigned char *title, unsigned char *buf, int len);
|
void print_hexbuf(int level, unsigned char *title, unsigned char *buf, int len);
|
||||||
void print_create_attributes(int level, DWORD create_opts);
|
void print_create_attributes(int level, DWORD create_opts);
|
||||||
void print_disposition(int level, DWORD disposition);
|
void print_disposition(int level, DWORD disposition);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue