From 0d4e435a95767daf67fba42c98128ec87ea1a958 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Tue, 24 Sep 2002 09:37:23 +0000 Subject: [PATCH] hcidump: format 128-bit INTs --- tools/parser/sdp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/parser/sdp.c b/tools/parser/sdp.c index 7d3aceb4c..00cfd8ed3 100644 --- a/tools/parser/sdp.c +++ b/tools/parser/sdp.c @@ -205,7 +205,10 @@ static inline void print_int(__u8 de_type, int level, int n, struct frame *frm) break; case 16:/* 128-bit */ get_u128(frm, &val, &val2); - printf(" 0x%llx%llx", val2, val); + printf(" 0x%llx", val2); + if (val < 0x1000000000000000L) + printf("0"); + printf("%llx", val); return; default: /* syntax error */ printf(" err"); -- 2.47.3