summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdike <jdike>2004-02-16 00:10:24 +0000
committerjdike <jdike>2004-02-16 00:10:24 +0000
commita0b805e5933b549ba5820f4e46b1da531b7cfb51 (patch)
treeb1017daf343f87079879d2cc3ad82fe53ade0d11
parent597020b156d8517887eee64627e9423bba35168a (diff)
downloaduml-history-a0b805e5933b549ba5820f4e46b1da531b7cfb51.tar.gz
"log" no longer strips newlines when they are the only thing in the log.
sysrq now replies before doing the request in case it's a reboot.
-rw-r--r--arch/um/drivers/mconsole_kern.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c
index dd17a49..a4d8998 100644
--- a/arch/um/drivers/mconsole_kern.c
+++ b/arch/um/drivers/mconsole_kern.c
@@ -112,8 +112,7 @@ void mconsole_log(struct mc_request *req)
int len;
char *ptr = req->request.data;
- ptr += strlen("log");
- while(isspace(*ptr)) ptr++;
+ ptr += strlen("log ");
len = req->len - (ptr - req->request.data);
printk("%.*s", len, ptr);
@@ -385,8 +384,8 @@ void mconsole_sysrq(struct mc_request *req)
ptr += strlen("sysrq");
while(isspace(*ptr)) ptr++;
- handle_sysrq(*ptr, &current->thread.regs, NULL, NULL);
mconsole_reply(req, "", 0, 0);
+ handle_sysrq(*ptr, &current->thread.regs, NULL, NULL);
}
#else
void mconsole_sysrq(struct mc_request *req)