diff options
author | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-03 18:29:26 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-14 20:23:26 -0400 |
commit | 332c421e67045343de74e644cdf389f559f0d83f (patch) | |
tree | c51665775b7faccbbff49b9d08c1b5ae932d52b8 /net/9p/error.c | |
parent | d0c447180bfcb1db8d59e6ddb10f0346bd7d29e9 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/error.c b/net/9p/error.c index 388770c3631e..fdebe4314062 100644 --- a/net/9p/error.c +++ b/net/9p/error.c | |||
@@ -237,8 +237,8 @@ int p9_errstr2errno(char *errstr, int len) | |||
237 | if (errno == 0) { | 237 | if (errno == 0) { |
238 | /* TODO: if error isn't found, add it dynamically */ | 238 | /* TODO: if error isn't found, add it dynamically */ |
239 | errstr[len] = 0; | 239 | errstr[len] = 0; |
240 | printk(KERN_ERR "%s: errstr :%s: not found\n", __func__, | 240 | printk(KERN_ERR "%s: server reported unknown error %s\n", |
241 | errstr); | 241 | __func__, errstr); |
242 | errno = 1; | 242 | errno = 1; |
243 | } | 243 | } |
244 | 244 | ||