From 4a340575ccad03dfcc7231e087c5d23d204314c5 Mon Sep 17 00:00:00 2001 From: itojun Date: Thu, 9 Mar 2000 22:07:59 +0000 Subject: [PATCH] make debugging output unambiguous on IPv6 numeric addrs (don't use host:port) --- usr.bin/ftp/fetch.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 6a96821ac622..55bc197c4f4f 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.106 2000/03/09 22:01:26 itojun Exp $ */ +/* $NetBSD: fetch.c,v 1.107 2000/03/09 22:07:59 itojun Exp $ */ /*- * Copyright (c) 1997-1999 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include #ifndef lint -__RCSID("$NetBSD: fetch.c,v 1.106 2000/03/09 22:01:26 itojun Exp $"); +__RCSID("$NetBSD: fetch.c,v 1.107 2000/03/09 22:07:59 itojun Exp $"); #endif /* not lint */ /* @@ -426,7 +426,8 @@ cleanup_parse_url: if (debug) fprintf(ttyout, - "parse_url: user `%s' pass `%s' host %s:%s(%d) path `%s'\n", + "parse_url: user `%s' pass `%s' host %s port %s(%d) " + "path `%s'\n", *user ? *user : "", *pass ? *pass : "", *host ? *host : "", *port ? *port : "", *portnum ? *portnum : -1, *path ? *path : ""); @@ -1465,7 +1466,8 @@ fetch_ftp(url) } if (debug) fprintf(ttyout, - "fetch_ftp: user `%s' pass `%s' host %s:%s path `%s' dir `%s' file `%s'\n", + "fetch_ftp: user `%s' pass `%s' host %s port %s " + "path `%s' dir `%s' file `%s'\n", user ? user : "", pass ? pass : "", host ? host : "", port ? port : "", path ? path : "",