summaryrefslogtreecommitdiff
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorMoeller, Thies <thies.moeller@baslerweb.com>2015-05-04 13:52:48 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-05-07 07:24:39 +0000
commit924093cc020e1e097de4f2aedf309a670f752fe1 (patch)
treec08ff0807e7d1353dee755a02f01c758c56c6365 /epan/to_str.c
parentf735d4b3ec09c96825f4e5ca0bd1c3794f264da9 (diff)
downloadwireshark-924093cc020e1e097de4f2aedf309a670f752fe1.tar.gz
fix FT_UINT64 fields output in tshark
Bug: 11170 Change-Id: Ica259867e2c8e0b4b680bca94970e13962a8dbb1 Reviewed-on: https://code.wireshark.org/review/8290 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index ca72e2f104..cac5d57231 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -268,24 +268,25 @@ guint64_to_str_buf_len(const guint64 u)
{
/* ((2^64)-1) == 18446744073709551615 */
- if (u >= G_GUINT64_CONSTANT(1000000000000000000)) return 19;
- if (u >= G_GUINT64_CONSTANT(100000000000000000)) return 18;
- if (u >= G_GUINT64_CONSTANT(10000000000000000)) return 17;
- if (u >= G_GUINT64_CONSTANT(1000000000000000)) return 16;
- if (u >= G_GUINT64_CONSTANT(100000000000000)) return 15;
- if (u >= G_GUINT64_CONSTANT(10000000000000)) return 14;
- if (u >= G_GUINT64_CONSTANT(1000000000000)) return 13;
- if (u >= G_GUINT64_CONSTANT(100000000000)) return 12;
- if (u >= G_GUINT64_CONSTANT(10000000000)) return 11;
- if (u >= G_GUINT64_CONSTANT(1000000000)) return 10;
- if (u >= G_GUINT64_CONSTANT(100000000)) return 9;
- if (u >= G_GUINT64_CONSTANT(10000000)) return 8;
- if (u >= G_GUINT64_CONSTANT(1000000)) return 7;
- if (u >= G_GUINT64_CONSTANT(100000)) return 6;
- if (u >= G_GUINT64_CONSTANT(10000)) return 5;
- if (u >= G_GUINT64_CONSTANT(1000)) return 4;
- if (u >= G_GUINT64_CONSTANT(100)) return 3;
- if (u >= G_GUINT64_CONSTANT(10)) return 2;
+ if (u >= G_GUINT64_CONSTANT(10000000000000000000)) return 20;
+ if (u >= G_GUINT64_CONSTANT(1000000000000000000)) return 19;
+ if (u >= G_GUINT64_CONSTANT(100000000000000000)) return 18;
+ if (u >= G_GUINT64_CONSTANT(10000000000000000)) return 17;
+ if (u >= G_GUINT64_CONSTANT(1000000000000000)) return 16;
+ if (u >= G_GUINT64_CONSTANT(100000000000000)) return 15;
+ if (u >= G_GUINT64_CONSTANT(10000000000000)) return 14;
+ if (u >= G_GUINT64_CONSTANT(1000000000000)) return 13;
+ if (u >= G_GUINT64_CONSTANT(100000000000)) return 12;
+ if (u >= G_GUINT64_CONSTANT(10000000000)) return 11;
+ if (u >= G_GUINT64_CONSTANT(1000000000)) return 10;
+ if (u >= G_GUINT64_CONSTANT(100000000)) return 9;
+ if (u >= G_GUINT64_CONSTANT(10000000)) return 8;
+ if (u >= G_GUINT64_CONSTANT(1000000)) return 7;
+ if (u >= G_GUINT64_CONSTANT(100000)) return 6;
+ if (u >= G_GUINT64_CONSTANT(10000)) return 5;
+ if (u >= G_GUINT64_CONSTANT(1000)) return 4;
+ if (u >= G_GUINT64_CONSTANT(100)) return 3;
+ if (u >= G_GUINT64_CONSTANT(10)) return 2;
return 1;
}