git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274f1f8
)
Use %p for a pointer type in a printf-style format string. Also casting
author
Tim Potter
<tpot@samba.org>
Tue, 22 Jul 2003 01:18:24 +0000
(
01:18
+0000)
committer
Tim Potter
<tpot@samba.org>
Tue, 22 Jul 2003 01:18:24 +0000
(
01:18
+0000)
a pointer to a uint32 value is incorrect on a 64-bit architecture.
(This used to be commit
afed2cbbcc07de9e453156972250f5f9d22e8e83
)
source3/rpc_server/srv_spoolss_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_spoolss_nt.c
b/source3/rpc_server/srv_spoolss_nt.c
index 2d316051af2f02c24a83a9791f53456adcb2f179..c7fab32957eb245c64f31079683573516b35e23c 100644
(file)
--- a/
source3/rpc_server/srv_spoolss_nt.c
+++ b/
source3/rpc_server/srv_spoolss_nt.c
@@
-563,7
+563,7
@@
static BOOL open_printer_hnd(pipes_struct *p, POLICY_HND *hnd, char *name, uint3
new_printer->notify.option=NULL;
- if ( !(new_printer->ctx = talloc_init("Printer Entry [
0x%x]", (uint32)
hnd)) ) {
+ if ( !(new_printer->ctx = talloc_init("Printer Entry [
%p]",
hnd)) ) {
DEBUG(0,("open_printer_hnd: talloc_init() failed!\n"));
close_printer_handle(p, hnd);
return False;