source4 samr: Tidy DBG_WARNING calls
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 20 Nov 2018 21:02:43 +0000 (10:02 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Nov 2018 00:50:11 +0000 (01:50 +0100)
commitad57cac7db0873cbe1c42173ed36ad41a75ed9a4
tree074efd8a52b205211655d4374cde11e01335a13a
parent1719f8b9cd98cf54a297ef59c68db68945bf6f0f
source4 samr: Tidy DBG_WARNING calls

Move the calls to GUID_buf_string and dom_sid_str_buf into the
coresponding DBG_WARNING call, instead of using an intermediate variable.
While this violates the coding guidelines, doing this makes the code less
cluttred and means the functions are only called if the debug message is
printed.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Nov 21 01:50:11 CET 2018 on sn-devel-144
source4/rpc_server/samr/dcesrv_samr.c