[PATCH] s3: smbd: Modernize Avahi DEBUG macros and long if statements

Omri Mor omri50 at gmail.com
Thu Jul 27 09:34:22 UTC 2017

> If you use DBG_DEBUG() instead of DEBUG(10, ()), you get the function
> name prefix for free.
> Volker

I did not realize that some of the DEBUG(10, ()) users had prefixed the function name.
Here’s a new version fixing that.
I also realized that the various avahi_entry_group_*() functions return the error directly, so there isn’t a need for a separate ret variable (or for calls to avahi_client_errno()).

Thanks for the input!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbd-Modernize-Avahi-DEBUG-macros-and-long-if-sta.patch
Type: application/octet-stream
Size: 5159 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170727/e8c62b22/0001-s3-smbd-Modernize-Avahi-DEBUG-macros-and-long-if-sta.obj>

More information about the samba-technical mailing list