login
Header Space

 
 

9p: make cryptic unknown error from server less scary

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Wednesday, May 14, 2008 - 10:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=332c42...
Commit:     332c421e67045343de74e644cdf389f559f0d83f
Parent:     d0c447180bfcb1db8d59e6ddb10f0346bd7d29e9
Author:     Eric Van Hensbergen <ericvh@opteron.9grid.us>
AuthorDate: Sat May 3 17:29:26 2008 -0500
Committer:  Eric Van Hensbergen <ericvh@opteron.9grid.us>
CommitDate: Wed May 14 19:23:26 2008 -0500

    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>
---
 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 388770c..fdebe43 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;
 	}
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
9p: make cryptic unknown error from server less scary, Linux Kernel Mailing List..., (Wed May 14, 10:59 pm)
speck-geostationary