summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-12-20 05:10:50 +0000
committerTim Potter <tpot@samba.org>2001-12-20 05:10:50 +0000
commit7d8082a8ad7d5de5daf653903efd36fb84b3cedc (patch)
tree3365d4ef023d6a2aa30be684e6846688cdcc79f2
parentb3aff6b5a35da3660ede060b42439324a2309644 (diff)
downloadsamba-7d8082a8ad7d5de5daf653903efd36fb84b3cedc.tar.gz
Grr - numbers printed in hexadecimal should be preceeded by 0x
-rw-r--r--source/smbd/nttrans.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 457b0451935..7a6ea52aca1 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -320,7 +320,7 @@ static int map_create_disposition( uint32 create_disposition)
return -1;
}
- DEBUG(10,("map_create_disposition: Mapped create_disposition %lx to %x\n",
+ DEBUG(10,("map_create_disposition: Mapped create_disposition 0x%lx to 0x%x\n",
(unsigned long)create_disposition, ret ));
return ret;
@@ -394,7 +394,7 @@ static int map_share_mode( BOOL *pstat_open_only, char *fname, uint32 create_opt
smb_open_mode = DOS_OPEN_RDONLY;
} else {
- DEBUG(0,("map_share_mode: Incorrect value %lx for desired_access to file %s\n",
+ DEBUG(0,("map_share_mode: Incorrect value 0x%lx for desired_access to file %s\n",
(unsigned long)desired_access, fname));
return -1;
}
@@ -408,7 +408,7 @@ static int map_share_mode( BOOL *pstat_open_only, char *fname, uint32 create_opt
if(share_access & FILE_SHARE_DELETE) {
smb_open_mode |= ALLOW_SHARE_DELETE;
- DEBUG(10,("map_share_mode: FILE_SHARE_DELETE requested. open_mode = %x\n", smb_open_mode));
+ DEBUG(10,("map_share_mode: FILE_SHARE_DELETE requested. open_mode = 0x%x\n", smb_open_mode));
}
/*
@@ -420,14 +420,14 @@ static int map_share_mode( BOOL *pstat_open_only, char *fname, uint32 create_opt
if(desired_access & DELETE_ACCESS) {
smb_open_mode |= DELETE_ACCESS_REQUESTED;
- DEBUG(10,("map_share_mode: DELETE_ACCESS requested. open_mode = %x\n", smb_open_mode));
+ DEBUG(10,("map_share_mode: DELETE_ACCESS requested. open_mode = 0x%x\n", smb_open_mode));
}
if (create_options & FILE_DELETE_ON_CLOSE) {
/* Implicit delete access requested... */
smb_open_mode |= DELETE_ACCESS_REQUESTED;
smb_open_mode |= DELETE_ON_CLOSE_FLAG;
- DEBUG(10,("map_share_mode: FILE_DELETE_ON_CLOSE requested. open_mode = %x\n", smb_open_mode));
+ DEBUG(10,("map_share_mode: FILE_DELETE_ON_CLOSE requested. open_mode = 0x%x\n", smb_open_mode));
}
/* Add in the requested share mode. */
@@ -453,8 +453,8 @@ static int map_share_mode( BOOL *pstat_open_only, char *fname, uint32 create_opt
if(file_attributes & FILE_FLAG_WRITE_THROUGH)
smb_open_mode |= FILE_SYNC_OPENMODE;
- DEBUG(10,("map_share_mode: Mapped desired access %lx, share access %lx, file attributes %lx \
-to open_mode %x\n", (unsigned long)desired_access, (unsigned long)share_access,
+ DEBUG(10,("map_share_mode: Mapped desired access 0x%lx, share access 0x%lx, file attributes 0x%lx \
+to open_mode 0x%x\n", (unsigned long)desired_access, (unsigned long)share_access,
(unsigned long)file_attributes, smb_open_mode ));
return smb_open_mode;