diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-12 01:00:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:45 -0500 |
commit | 7b8f58c37c7a975b93e20bd40b5195960fe22c6f (patch) | |
tree | 2fdb8f527feb2498dbb3551706ec9d17d3b41b89 /source4/libcli/nbt/nameregister.c | |
parent | 49568fab37d3a8fc3727ec5972cecdaf35e904b5 (diff) | |
download | samba-7b8f58c37c7a975b93e20bd40b5195960fe22c6f.tar.gz samba-7b8f58c37c7a975b93e20bd40b5195960fe22c6f.tar.bz2 samba-7b8f58c37c7a975b93e20bd40b5195960fe22c6f.zip |
r5352: added a function nbt_name_string() that formats a nbt_name structure
as a human readable string. The format is designed to be able to be
used as the DN for the WINS database as well, while coping with
arbitrary bytes in the name (except nul bytes)
(This used to be commit aac3090e3504ba07124a9d480322a98efb97175e)
Diffstat (limited to 'source4/libcli/nbt/nameregister.c')
-rw-r--r-- | source4/libcli/nbt/nameregister.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libcli/nbt/nameregister.c b/source4/libcli/nbt/nameregister.c index 9c1db38529..276b8e4ac3 100644 --- a/source4/libcli/nbt/nameregister.c +++ b/source4/libcli/nbt/nameregister.c @@ -185,10 +185,9 @@ static void name_register_bcast_handler(struct nbt_name_request *req) } else { c->state = SMBCLI_REQUEST_ERROR; c->status = NT_STATUS_CONFLICTING_ADDRESSES; - DEBUG(3,("Name registration conflict from %s for %s<%02x> with ip %s - rcode %d\n", + DEBUG(3,("Name registration conflict from %s for %s with ip %s - rcode %d\n", state->io->out.reply_from, - state->io->out.name.name, - state->io->out.name.type, + nbt_name_string(state, &state->io->out.name), state->io->out.reply_addr, state->io->out.rcode)); } |