aboutsummaryrefslogtreecommitdiff
path: root/net/9p/error.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@opteron.9grid.us>2008-05-03 17:29:26 -0500
committerEric Van Hensbergen <ericvh@opteron.9grid.us>2008-05-14 19:23:26 -0500
commit332c421e67045343de74e644cdf389f559f0d83f (patch)
treec51665775b7faccbbff49b9d08c1b5ae932d52b8 /net/9p/error.c
parentd0c447180bfcb1db8d59e6ddb10f0346bd7d29e9 (diff)
9p: make cryptic unknown error from server less scary
Right now when we get an error string from the server that we can't map we report a cryptic error that actually makes it look like we are reporting a problem with the client. This changes the text of the log message to clarify where the error is coming from. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/error.c')
-rw-r--r--net/9p/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/error.c b/net/9p/error.c
index 388770c3631..fdebe431406 100644
--- a/net/9p/error.c
+++ b/net/9p/error.c
@@ -237,8 +237,8 @@ int p9_errstr2errno(char *errstr, int len)
if (errno == 0) {
/* TODO: if error isn't found, add it dynamically */
errstr[len] = 0;
- printk(KERN_ERR "%s: errstr :%s: not found\n", __func__,
- errstr);
+ printk(KERN_ERR "%s: server reported unknown error %s\n",
+ __func__, errstr);
errno = 1;
}