Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
net/9p/error.c
··· 237 237 if (errno == 0) { 238 238 /* TODO: if error isn't found, add it dynamically */ 239 239 errstr[len] = 0; 240 - printk(KERN_ERR "%s: errstr :%s: not found\n", __func__, 241 - errstr); 240 + printk(KERN_ERR "%s: server reported unknown error %s\n", 241 + __func__, errstr); 242 242 errno = 1; 243 243 } 244 244