• Ilya Dryomov's avatar
    libceph: use %s instead of %pE in dout()s · 4a3262b1
    Ilya Dryomov authored
    Commit d30291b9 ("libceph: variable-sized ceph_object_id") changed
    dout()s in what is now encode_request() and ceph_object_locator_to_pg()
    to use %pE, mostly to document that, although all rbd and cephfs object
    names are NULL-terminated strings, ceph_object_id will handle any RADOS
    object name, including the one containing NULs, just fine.
    
    However, it turns out that vbin_printf() can't handle anything but ints
    and %s - all %p suffixes are ignored.  The buffer %p** points to isn't
    recorded, resulting in trash in the messages if the buffer had been
    reused by the time bstr_printf() got to it.
    Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
    4a3262b1
osdmap.c 47 KB