debugMsg() should end with "\n".

This commit is contained in:
Jun Kuriyama 2002-11-01 02:05:05 +00:00
parent 9ce4f7a0f0
commit b46e66a5a5
12 changed files with 17 additions and 17 deletions

View File

@ -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);

View File

@ -449,7 +449,7 @@ deviceGetAll(void)
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;
}

View File

@ -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) {

View File

@ -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);

View File

@ -449,7 +449,7 @@ deviceGetAll(void)
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;
}

View File

@ -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));

View File

@ -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);

View File

@ -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");
}
}

View File

@ -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;

View File

@ -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);
}

View File

@ -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)) {

View File

@ -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) {