diff mbox

[V9fs-developer] Fwd: [patch] 9p: saving negative to unsigned char

Message ID 20100330204534.GA12061@llnl.gov (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Jim Garlick March 30, 2010, 8:45 p.m. UTC
None
diff mbox

Patch

diff --git a/net/9p/client.c b/net/9p/client.c
index e3e5bf4..4d66e97 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -84,8 +84,9 @@  static unsigned char get_protocol_version(const substring_t *n
ame)
                version = p9_proto_2000L;
                P9_DPRINTK(P9_DEBUG_9P, "Protocol version: 9P2000.L\n");
        } else {
-               P9_DPRINTK(P9_DEBUG_ERROR, "Unknown protocol version %s. ",
-                                                       name->from);
+               P9_DPRINTK(P9_DEBUG_ERROR, "Unknown protocol version %.*s\n",
+                                       name->to-name->from, name->from);
+
        }
        return version;