diff options
author | jdike <jdike> | 2004-02-16 00:10:24 +0000 |
---|---|---|
committer | jdike <jdike> | 2004-02-16 00:10:24 +0000 |
commit | a0b805e5933b549ba5820f4e46b1da531b7cfb51 (patch) | |
tree | b1017daf343f87079879d2cc3ad82fe53ade0d11 | |
parent | 597020b156d8517887eee64627e9423bba35168a (diff) | |
download | uml-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.c | 5 |
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, ¤t->thread.regs, NULL, NULL); mconsole_reply(req, "", 0, 0); + handle_sysrq(*ptr, ¤t->thread.regs, NULL, NULL); } #else void mconsole_sysrq(struct mc_request *req) |