Remove unuseful message about decoding failure.
Add location of bdev label that fails.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit
8c28695cde065235e23dbd7af827df22965cb76e)
decode(expected_crc, p);
}
catch (ceph::buffer::error& e) {
- derr << __func__ << " unable to decode label " << path.c_str()
- << " at offset " << p.get_off()
- << ": " << e.what()
- << dendl;
+ derr << __func__ << " " << path.c_str() << " data at " << std::hex << disk_position
+ << std::dec << ", " << "unable to decode label " << dendl;
return -ENOENT;
}
if (crc != expected_crc) {