[LinuxPPS] [PATCH 04/11] pps: change /sys/class/pps/pps%d/mode to include 0x prefix.

George Spelvin linux at horizon.com
Fri Feb 6 14:30:27 CET 2009


Just to make it more obvious.

---
 drivers/pps/sysfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pps/sysfs.c b/drivers/pps/sysfs.c
index 84a5634..d4fe11e 100644
--- a/drivers/pps/sysfs.c
+++ b/drivers/pps/sysfs.c
@@ -66,7 +66,7 @@ static ssize_t pps_show_mode(struct device *dev,
 {
 	struct pps_device *pps = dev_get_drvdata(dev);
 
-	return sprintf(buf, "%4x\n", pps->info.mode);
+	return sprintf(buf, "%#06x\n", pps->info.mode);
 }
 
 static ssize_t pps_show_echo(struct device *dev,
-- 
1.6.0.6




More information about the LinuxPPS mailing list