Skip to content

Commit 332c421

Browse files
author
Eric Van Hensbergen
committed
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>
1 parent d0c4471 commit 332c421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/9p/error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ int p9_errstr2errno(char *errstr, int len)
237237
if (errno == 0) {
238238
/* TODO: if error isn't found, add it dynamically */
239239
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);
242242
errno = 1;
243243
}
244244

0 commit comments

Comments
 (0)