From 863ee4199c2cdc0c4c71deff86857e9f2bb90ebe Mon Sep 17 00:00:00 2001 From: kuriyama Date: Fri, 1 Nov 2002 02:05:05 +0000 Subject: debugMsg() should end with "\n". --- usr.sbin/sysinstall/command.c | 2 +- usr.sbin/sysinstall/devices.c | 2 +- usr.sbin/sysinstall/http.c | 2 +- usr.sbin/sysinstall/media.c | 6 +++--- usr.sbin/sysinstall/network.c | 8 ++++---- usr.sbin/sysinstall/nfs.c | 2 +- usr.sbin/sysinstall/tape.c | 2 +- usr.sbin/sysinstall/tcpip.c | 2 +- usr.sbin/sysinstall/variable.c | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) (limited to 'usr.sbin/sysinstall') diff --git a/usr.sbin/sysinstall/command.c b/usr.sbin/sysinstall/command.c index 65d57ae..33ebc35 100644 --- a/usr.sbin/sysinstall/command.c +++ b/usr.sbin/sysinstall/command.c @@ -171,7 +171,7 @@ command_execute(void) the data */ func = (commandFunc)commandStack[i]->cmds[j].ptr; if (isDebug()) - msgDebug("%p: Execute(%s, %s)", + msgDebug("%p: Execute(%s, %s)\n", func, commandStack[i]->key, (char *)commandStack[i]->cmds[j].data); ret = (*func)(commandStack[i]->key, commandStack[i]->cmds[j].data); diff --git a/usr.sbin/sysinstall/devices.c b/usr.sbin/sysinstall/devices.c index 7df1b3e..c9038db 100644 --- a/usr.sbin/sysinstall/devices.c +++ b/usr.sbin/sysinstall/devices.c @@ -449,7 +449,7 @@ skipif: d = Open_Disk(names[i]); if (!d) { - msgDebug("Unable to open disk %s", names[i]); + msgDebug("Unable to open disk %s\n", names[i]); continue; } diff --git a/usr.sbin/sysinstall/http.c b/usr.sbin/sysinstall/http.c index c8742d0..19c8264 100644 --- a/usr.sbin/sysinstall/http.c +++ b/usr.sbin/sysinstall/http.c @@ -223,7 +223,7 @@ mediaGetHTTP(Device *dev, char *file, Boolean probe) variable_get(VAR_HTTP_PATH), file, variable_get(VAR_HTTP_FTP_MODE)); if (isDebug()) { - msgDebug("sending http request: %s",req); + msgDebug("sending http request: %s\n",req); } write(s,req,strlen(req)); diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 26e5f46..681a584 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -490,8 +490,8 @@ int mediaSetHTTP(dialogMenuItem *self) variable_set2(VAR_HTTP_HOST, hostname, 0); variable_set2(VAR_HTTP_PORT, itoa(HttpPort), 0); if (isDebug()) { - msgDebug("VAR_FTP_PATH : %s",variable_get(VAR_FTP_PATH)); - msgDebug("VAR_HTTP_HOST, _PORT: %s:%s",variable_get(VAR_HTTP_HOST), + msgDebug("VAR_FTP_PATH : %s\n",variable_get(VAR_FTP_PATH)); + msgDebug("VAR_HTTP_HOST, _PORT: %s:%s\n",variable_get(VAR_HTTP_HOST), variable_get(VAR_HTTP_PORT)); } @@ -578,7 +578,7 @@ mediaSetNFS(dialogMenuItem *self) } else { if (isDebug()) - msgDebug("Found DNS entry for %s successfully..", hostname); + msgDebug("Found DNS entry for %s successfully..\n", hostname); } } variable_set2(VAR_NFS_HOST, hostname, 0); diff --git a/usr.sbin/sysinstall/network.c b/usr.sbin/sysinstall/network.c index a42cee0..c57ad3d 100644 --- a/usr.sbin/sysinstall/network.c +++ b/usr.sbin/sysinstall/network.c @@ -127,7 +127,7 @@ mediaInitNetwork(Device *dev) cp = variable_get(ifconfig); if (cp) { if (strcmp(cp, "DHCP")) { - msgDebug("ifconfig %s %s", dev->name, cp); + msgDebug("ifconfig %s %s\n", dev->name, cp); i = vsystem("ifconfig %s %s", dev->name, cp); if (i) { msgConfirm("Unable to configure the %s interface!\n" @@ -141,7 +141,7 @@ mediaInitNetwork(Device *dev) "not on your local network"); } else { - msgDebug("Adding default route to %s.", rp); + msgDebug("Adding default route to %s.\n", rp); vsystem("route -n add default %s", rp); } } @@ -175,13 +175,13 @@ mediaShutdownNetwork(Device *dev) cp = variable_get(ifconfig); if (!cp) return; - msgDebug("ifconfig %s down", dev->name); + msgDebug("ifconfig %s down\n", dev->name); i = vsystem("ifconfig %s down", dev->name); if (i) msgConfirm("Warning: Unable to down the %s interface properly", dev->name); cp = variable_get(VAR_GATEWAY); if (cp) { - msgDebug("Deleting default route."); + msgDebug("Deleting default route.\n"); vsystem("route -n delete default"); } } diff --git a/usr.sbin/sysinstall/nfs.c b/usr.sbin/sysinstall/nfs.c index 96590cb..5c08df7 100644 --- a/usr.sbin/sysinstall/nfs.c +++ b/usr.sbin/sysinstall/nfs.c @@ -89,7 +89,7 @@ mediaShutdownNFS(Device *dev) if (!NFSMounted) return; - msgDebug("Unmounting NFS partition on %s", mountpoint); + msgDebug("Unmounting NFS partition on %s\n", mountpoint); if (unmount(mountpoint, MNT_FORCE) != 0) msgConfirm("Could not unmount the NFS partition: %s", strerror(errno)); NFSMounted = FALSE; diff --git a/usr.sbin/sysinstall/tape.c b/usr.sbin/sysinstall/tape.c index a5ce339..fd73da5 100644 --- a/usr.sbin/sysinstall/tape.c +++ b/usr.sbin/sysinstall/tape.c @@ -119,7 +119,7 @@ mediaShutdownTape(Device *dev) if (!tapeInitted) return; if (file_readable((char *)dev->private)) { - msgDebug("Cleaning up results of tape extract in %s..", + msgDebug("Cleaning up results of tape extract in %s..\n", (char *)dev->private); (void)vsystem("rm -rf %s", (char *)dev->private); } diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 27f353f..ffe2e54 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -309,7 +309,7 @@ rtsolGetInfo(Device *devp) return; while (fgets(data, sizeof(data), ifp) != NULL) { if (isDebug()) - msgDebug("RTSOL configured interface returns %s", data); + msgDebug("RTSOL configured interface returns %s\n", data); if ((cp = strstr(data, "inet6 ")) != NULL) { cp += 6; /* move over keyword */ if (strncmp(cp, "fe80:", 5)) { diff --git a/usr.sbin/sysinstall/variable.c b/usr.sbin/sysinstall/variable.c index 6f896ee..d7f0e1b 100644 --- a/usr.sbin/sysinstall/variable.c +++ b/usr.sbin/sysinstall/variable.c @@ -213,7 +213,7 @@ dump_variables(dialogMenuItem *unused) Variable *vp; if (isDebug()) - msgDebug("Writing sysinstall variables to file.."); + msgDebug("Writing sysinstall variables to file..\n"); fp = fopen("/etc/sysinstall.vars", "w"); if (!fp) { -- cgit v1.1