summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-12 01:00:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:45 -0500
commit7b8f58c37c7a975b93e20bd40b5195960fe22c6f (patch)
tree2fdb8f527feb2498dbb3551706ec9d17d3b41b89 /source4/torture
parent49568fab37d3a8fc3727ec5972cecdaf35e904b5 (diff)
downloadsamba-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/torture')
-rw-r--r--source4/torture/nbt/wins.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c
index 3b5338147b..afbe91f6ec 100644
--- a/source4/torture/nbt/wins.c
+++ b/source4/torture/nbt/wins.c
@@ -65,11 +65,8 @@ static BOOL nbt_test_wins_name(TALLOC_CTX *mem_ctx, const char *address,
the right IP */
socket_listen(nbtsock->sock, myaddress, 0, 0, 0);
- printf("Testing name registration to WINS with name %s<%02x> at %s\n",
- name->name, name->type, myaddress);
- if (name->scope) {
- printf("scope is %s\n", name->scope);
- }
+ printf("Testing name registration to WINS with name %s at %s\n",
+ nbt_name_string(mem_ctx, name), myaddress);
printf("release the name\n");
release.in.name = *name;