aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-08-17 08:52:04 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-08-17 08:52:04 +0000
commit135f79ef6f7d2bd94d48012b07a251494e5f6c8b (patch)
tree6296868b9b5daf1a2e9887269b4837d876fc2ac8
parentf5eca0c88e319bb76137e30a780f66e84225a543 (diff)
downloadxen-135f79ef6f7d2bd94d48012b07a251494e5f6c8b.tar.gz
xen-135f79ef6f7d2bd94d48012b07a251494e5f6c8b.tar.bz2
xen-135f79ef6f7d2bd94d48012b07a251494e5f6c8b.zip
Fix compile warning from zero-length printf format string.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
-rw-r--r--linux-2.6-xen-sparse/arch/xen/kernel/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
index d2e204d12d..445daf01e6 100644
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
@@ -264,7 +264,7 @@ static void shutdown_handler(struct xenbus_watch *watch, const char *node)
return;
}
- xenbus_printf("control", "shutdown", "");
+ xenbus_write("control", "shutdown", "", O_CREAT);
if (strcmp(str, "poweroff") == 0)
shutting_down = SHUTDOWN_POWEROFF;