]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libceph: minor byte order problems in read_partial_message()
authorAlex Elder <elder@inktank.com>
Sat, 9 Mar 2013 00:51:03 +0000 (18:51 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:30 +0000 (21:16 -0700)
Some values printed are not (necessarily) in CPU order.  We already
have a copy of the converted versions, so use them.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c

index b8d0da56d610077566bfb4979620dc889222a168..d9ace979adef369026c0c57375aab00e44684efe 100644 (file)
@@ -1916,7 +1916,7 @@ static int read_partial_message(struct ceph_connection *con)
                int skip = 0;
 
                dout("got hdr type %d front %d data %d\n", con->in_hdr.type,
-                    con->in_hdr.front_len, con->in_hdr.data_len);
+                    front_len, data_len);
                ret = ceph_con_in_msg_alloc(con, &skip);
                if (ret < 0)
                        return ret;