summaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-07-02 21:25:56 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-07-02 21:25:56 +0000
commit4eda60b5f737a0b423d67d098cd9ba2f3780cbfe (patch)
treee1ef66f466375f34ec01ccf1ae873c6c6a764355 /release
parent470ef6462674ee9f4ab80cf57386f2af400cf5b5 (diff)
Notes
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/command.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/release/sysinstall/command.c b/release/sysinstall/command.c
index 2242495f6818..65d57ae75321 100644
--- a/release/sysinstall/command.c
+++ b/release/sysinstall/command.c
@@ -160,19 +160,24 @@ command_execute(void)
for (j = 0; j < commandStack[i]->ncmds; j++) {
/* If it's a shell command, run system on it */
if (commandStack[i]->cmds[j].type == CMD_SHELL) {
- msgNotify("Doing %s", commandStack[i]->cmds[j].ptr);
+ msgNotify("Doing %s", (char *)commandStack[i]->cmds[j].ptr);
ret = vsystem("%s", (char *)commandStack[i]->cmds[j].ptr);
if (isDebug())
- msgDebug("Command `%s' returns status %d\n", commandStack[i]->cmds[j].ptr, ret);
+ msgDebug("Command `%s' returns status %d\n",
+ (char *)commandStack[i]->cmds[j].ptr, ret);
}
else {
- /* It's a function pointer - call it with the key and the data */
+ /* It's a function pointer - call it with the key and
+ the data */
func = (commandFunc)commandStack[i]->cmds[j].ptr;
if (isDebug())
- msgDebug("%x: Execute(%s, %s)", func, commandStack[i]->key, commandStack[i]->cmds[j].data);
+ msgDebug("%p: Execute(%s, %s)",
+ func, commandStack[i]->key,
+ (char *)commandStack[i]->cmds[j].data);
ret = (*func)(commandStack[i]->key, commandStack[i]->cmds[j].data);
if (isDebug())
- msgDebug("Function @ %x returns status %d\n", commandStack[i]->cmds[j].ptr, ret);
+ msgDebug("Function @ %p returns status %d\n",
+ commandStack[i]->cmds[j].ptr, ret);
}
}
}