Add missing sb_sndptr* fields to db_print_sockbuf().

While here change %d to %u for u_ints.

Discussed with:	rwatson, kmacy
This commit is contained in:
bz 2008-01-03 15:19:31 +00:00
parent 149cd5b092
commit 69daf9ac7f

View File

@ -394,13 +394,17 @@ db_print_sockbuf(struct sockbuf *sb, const char *sockbufname, int indent)
db_printf("sb_lastrecord: %p\n", sb->sb_lastrecord);
db_print_indent(indent);
db_printf("sb_cc: %d ", sb->sb_cc);
db_printf("sb_hiwat: %d ", sb->sb_hiwat);
db_printf("sb_mbcnt: %d ", sb->sb_mbcnt);
db_printf("sb_mbmax: %d\n", sb->sb_mbmax);
db_printf("sb_sndptr: %p ", sb->sb_sndptr);
db_printf("sb_sndptroff: %u\n", sb->sb_sndptroff);
db_print_indent(indent);
db_printf("sb_ctl: %d ", sb->sb_ctl);
db_printf("sb_cc: %u ", sb->sb_cc);
db_printf("sb_hiwat: %u ", sb->sb_hiwat);
db_printf("sb_mbcnt: %u ", sb->sb_mbcnt);
db_printf("sb_mbmax: %u\n", sb->sb_mbmax);
db_print_indent(indent);
db_printf("sb_ctl: %u ", sb->sb_ctl);
db_printf("sb_lowat: %d ", sb->sb_lowat);
db_printf("sb_timeo: %d\n", sb->sb_timeo);