From 7b8f58c37c7a975b93e20bd40b5195960fe22c6f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 12 Feb 2005 01:00:15 +0000 Subject: 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) --- source4/torture/nbt/wins.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source4/torture') 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; -- cgit