Message ID | 1468889100-30698-2-git-send-email-vishal.l.verma@intel.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Mon, Jul 18, 2016 at 5:44 PM, Vishal Verma <vishal.l.verma@intel.com> wrote: > 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> > --- > drivers/nvdimm/pmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c > index 608fc44..29ab25b 100644 > --- a/drivers/nvdimm/pmem.c > +++ b/drivers/nvdimm/pmem.c > @@ -57,7 +57,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: 0x%llx clear %ld sector%s\n", %#llx is a bit smaller / more readable. Shall I just fix this up on applying? -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
T24gVHVlLCAyMDE2LTA3LTE5IGF0IDA4OjUzIC0wNzAwLCBEYW4gV2lsbGlhbXMgd3JvdGU6DQo+ IE9uIE1vbiwgSnVsIDE4LCAyMDE2IGF0IDU6NDQgUE0sIFZpc2hhbCBWZXJtYSA8dmlzaGFsLmwu dmVybWFAaW50ZWwuY28NCj4gbT4gd3JvdGU6DQo+ID4gUHJlZml4IHRoZSBzZWN0b3IgbnVtYmVy IGJlaW5nIGNsZWFyZWQgd2l0aCBhICcweCcgdG8gbWFrZSBpdCBjbGVhcg0KPiA+IHRoYXQNCj4g PiB0aGlzIGlzIGEgaGV4IHZhbHVlLg0KPiA+IA0KPiA+IFNpZ25lZC1vZmYtYnk6IFZpc2hhbCBW ZXJtYSA8dmlzaGFsLmwudmVybWFAaW50ZWwuY29t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5aW5nPw0KDQpUSUwgOikgWWVzIHlvdSBjYW4gZG8gdGhlIGZpeHVwLCB0 aGFua3Mh -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 07/19, Verma, Vishal L wrote: > On Tue, 2016-07-19 at 08:53 -0700, Dan Williams wrote: > > On Mon, Jul 18, 2016 at 5:44 PM, Vishal Verma <vishal.l.verma@intel.co > > m> wrote: > > > 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> > > > --- > > > drivers/nvdimm/pmem.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c > > > index 608fc44..29ab25b 100644 > > > --- a/drivers/nvdimm/pmem.c > > > +++ b/drivers/nvdimm/pmem.c > > > @@ -57,7 +57,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: 0x%llx clear %ld sector%s\n", > > > > %#llx is a bit smaller / more readable. Shall I just fix this up on > > applying? > > TIL :) Yes you can do the fixup, thanks! Or since I'm reworking the other two, I'lll fix this up too. > _______________________________________________ > Linux-nvdimm mailing list > Linux-nvdimm@lists.01.org > https://lists.01.org/mailman/listinfo/linux-nvdimm -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 608fc44..29ab25b 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -57,7 +57,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: 0x%llx clear %ld sector%s\n", __func__, (unsigned long long) sector, cleared / 512, cleared / 512 > 1 ? "s" : ""); badblocks_clear(&pmem->bb, sector, cleared / 512);
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> --- drivers/nvdimm/pmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)