Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: fix preallocation of local endpoint table
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_format.c
diff --git
a/src/vnet/tcp/tcp_format.c
b/src/vnet/tcp/tcp_format.c
index
994ccfd
..
6cc9ae5
100644
(file)
--- a/
src/vnet/tcp/tcp_format.c
+++ b/
src/vnet/tcp/tcp_format.c
@@
-45,7
+45,8
@@
format_tcp_flags (u8 * s, va_list * args)
{
int flags = va_arg (*args, int);
{
int flags = va_arg (*args, int);
-#define _(f) if (flags & TCP_FLAG_##f) s = format (s, "%s, ", #f);
+ s = format (s, "0x%02x", flags);
+#define _(f) if (flags & TCP_FLAG_##f) s = format (s, " %s", #f);
foreach_tcp_flag
#undef _
return s;
foreach_tcp_flag
#undef _
return s;
@@
-58,7
+59,7
@@
format_tcp_header (u8 * s, va_list * args)
tcp_header_t *tcp = va_arg (*args, tcp_header_t *);
u32 max_header_bytes = va_arg (*args, u32);
u32 header_bytes;
tcp_header_t *tcp = va_arg (*args, tcp_header_t *);
u32 max_header_bytes = va_arg (*args, u32);
u32 header_bytes;
- u
word
indent;
+ u
32
indent;
/* Nothing to do. */
if (max_header_bytes < sizeof (tcp[0]))
/* Nothing to do. */
if (max_header_bytes < sizeof (tcp[0]))