Timur I. Bakeyev via samba-technical
2018-05-16 13:38:34 UTC
Hi Timur,
For the changes in lib/dbwrap/dbwrap_tdb.c and source3/smbd/open.c, can
you please modernise the debug statements that you touch by changing
them as below?
DEBUG(10, (...));
to
DBG_DEBUG(...);
Thanks...
Thanks for the review, Martin!Hi all!
While analyzing debug logs of our customer, I've noticed strange looking
[2018/05/09 16:02:52.629315, 10, pid=907, effective(1001, 1001), real(0,
0)] ../source3/smbd/open.c:5543(create_file_default)
create_file: access_mask = 0x100080 file_attributes = 0x10,
share_accessWhile analyzing debug logs of our customer, I've noticed strange looking
[2018/05/09 16:02:52.629315, 10, pid=907, effective(1001, 1001), real(0,
0)] ../source3/smbd/open.c:5543(create_file_default)
create_file: access_mask = 0x100080 file_attributes = 0x10,
= 0x7, create_disposition = 0x1 create_options = 0x1 oplock_request = 0x0
private_flags = 0x0 root_dir_fid = 0x0, ea_list = 0x0x0, sd = 0x0x0,
fnameprivate_flags = 0x0 root_dir_fid = 0x0, ea_list = 0x0x0, sd = 0x0x0,
= .
That 0x0x0 puzzled me and short investigation showed that in few places
weThat 0x0x0 puzzled me and short investigation showed that in few places
use "0x%p" format string to represent buffer address in the debug logs.
Manp The void * pointer argument is printed in hexadecimal
(asif
by â%#xâ or â%#lxâ).
I.e. the address will be already prefixed with the 0x, no need to
explicitly add it.
Here is a small patch.
Looks good.by â%#xâ or â%#lxâ).
I.e. the address will be already prefixed with the 0x, no need to
explicitly add it.
Here is a small patch.
For the changes in lib/dbwrap/dbwrap_tdb.c and source3/smbd/open.c, can
you please modernise the debug statements that you touch by changing
them as below?
DEBUG(10, (...));
to
DBG_DEBUG(...);
Thanks...
Here are the patches that should fit you requirements, I hope.
List, can I get a second review, please :)?
With regards,
Timur Bakeyev.