pmem: clarify a debug print in pmem_clear_poison
authorVishal Verma <vishal.l.verma@intel.com>
Fri, 22 Jul 2016 23:21:31 +0000 (17:21 -0600)
committerDan Williams <dan.j.williams@intel.com>
Sat, 23 Jul 2016 18:06:33 +0000 (11:06 -0700)
Prefix the sector number being cleared with a '0x' to make it clear that
this is a hex value.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c

index 7251b4b6da844e77827e1a841ac3cca1aaa0ac2a..9f75eb85cf7c79d5b0093b35485106bdea11f9da 100644 (file)
@@ -58,7 +58,7 @@ static void pmem_clear_poison(struct pmem_device *pmem, phys_addr_t offset,
        cleared = nvdimm_clear_poison(dev, pmem->phys_addr + offset, len);
 
        if (cleared > 0 && cleared / 512) {
-               dev_dbg(dev, "%s: %llx clear %ld sector%s\n",
+               dev_dbg(dev, "%s: %#llx clear %ld sector%s\n",
                                __func__, (unsigned long long) sector,
                                cleared / 512, cleared / 512 > 1 ? "s" : "");
                badblocks_clear(&pmem->bb, sector, cleared / 512);