]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix printing of ipv6 addrs
authorSage Weil <sage@newdream.net>
Thu, 8 Jul 2010 17:47:16 +0000 (10:47 -0700)
committerSage Weil <sage@newdream.net>
Thu, 8 Jul 2010 23:49:53 +0000 (16:49 -0700)
commit22481af59b13990382dadb845399c4484fdc9b69
tree472cfd72bcc15d7a7323a58a8698bab6ec7f33f1
parentfe6a3436f6363cc13fc4f59f9c9284c0150ae76c
ceph: fix printing of ipv6 addrs

The buffer was too small.  Make it bigger, use snprintf(), put brackets
around the ipv6 address to avoid mixing it up with the :port, and use the
ever-so-handy %pI[46] formats.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/messenger.c