From 1348f564f45d40ee14dbb7ab50646b935f7befa8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 7 Nov 2006 19:44:47 +0000 Subject: [PATCH] diag: print the gpiomask in 16-bit hex SVN-Revision: 5468 --- openwrt/target/linux/package/diag/src/diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 5f0e07acda..a704999789 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -708,7 +708,7 @@ static ssize_t diag_proc_read(struct file *file, char *buf, size_t count, loff_t len = sprintf(page, "%s\n", platform.name); break; case PROC_GPIOMASK: - len = sprintf(page, "%d\n", gpiomask); + len = sprintf(page, "0x%04x\n", gpiomask); break; } } -- 2.30.2