Commit 753488df authored by YuriNenakhov's avatar YuriNenakhov

hex formatting

parent d595858f
...@@ -69,7 +69,7 @@ static void __exit elphelmem_exit(void) ...@@ -69,7 +69,7 @@ static void __exit elphelmem_exit(void)
static ssize_t get_paddr(struct device *dev, struct device_attribute *attr, char *buf) static ssize_t get_paddr(struct device *dev, struct device_attribute *attr, char *buf)
{ {
return sprintf(buf,"%x\n", (u32)elphel_buf.paddr); return sprintf(buf,"0x%x\n", (u32)elphel_buf.paddr);
} }
static ssize_t get_size(struct device *dev, struct device_attribute *attr, char *buf) static ssize_t get_size(struct device *dev, struct device_attribute *attr, char *buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment