summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-11 10:49:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:12 -0500
commit1598aaca9579f4e2ca9d1fd539693969a2319a4b (patch)
treebb04fd1e4ee49981f6e0a529cf227d0682bf56fc /source4/librpc/ndr
parent7935df168f4e98e5d3da352ea555883b0be8bbd3 (diff)
downloadsamba-1598aaca9579f4e2ca9d1fd539693969a2319a4b.tar.gz
samba-1598aaca9579f4e2ca9d1fd539693969a2319a4b.tar.bz2
samba-1598aaca9579f4e2ca9d1fd539693969a2319a4b.zip
r11676: as tridge uses 0x%llx in his latest commits...
try to use it every where and see how portable it is metze (This used to be commit 66a94de5ddd09df858a515555c01aa3d4f7d3e96)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_basic.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 8f2cf49a1c..d76fa45ec3 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -649,10 +649,7 @@ void ndr_print_uint32(struct ndr_print *ndr, const char *name, uint32_t v)
void ndr_print_udlong(struct ndr_print *ndr, const char *name, uint64_t v)
{
- ndr->print(ndr, "%-25s: 0x%08x%08x (%llu)", name,
- (uint32_t)(v >> 32),
- (uint32_t)(v & 0xFFFFFFFF),
- v);
+ ndr->print(ndr, "%-25s: 0x%016llx (%llu)", name, v, v);
}
void ndr_print_udlongr(struct ndr_print *ndr, const char *name, uint64_t v)
@@ -662,10 +659,7 @@ void ndr_print_udlongr(struct ndr_print *ndr, const char *name, uint64_t v)
void ndr_print_dlong(struct ndr_print *ndr, const char *name, int64_t v)
{
- ndr->print(ndr, "%-25s: 0x%08x%08x (%lld)", name,
- (uint32_t)(v >> 32),
- (uint32_t)(v & 0xFFFFFFFF),
- v);
+ ndr->print(ndr, "%-25s: 0x%016llx (%lld)", name, v, v);
}
void ndr_print_hyper(struct ndr_print *ndr, const char *name, uint64_t v)