aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarik Horn <[email protected]>2011-04-24 20:48:56 -0500
committerDarik Horn <[email protected]>2011-04-24 20:56:07 -0500
commitc95b308d12be1a7f317d5b280a9f14e7d0b1f104 (patch)
treee3f9611b856a11f53d5eb9f53adc55c7b82023b5
parentd837ae395b3368bcdc13a7ef1ad8abfc8d24e88f (diff)
Correct typos in the spl proc handler.
Correct a format typo that causes /proc/sys/kernel/spl/hostid to return a decimal number instead of a hexadecimal number.
-rw-r--r--module/spl/spl-proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
index fa0d1fb3d..1b353ceb2 100644
--- a/module/spl/spl-proc.c
+++ b/module/spl/spl-proc.c
@@ -492,7 +492,7 @@ SPL_PROC_HANDLER(proc_dohostid)
if (write) {
/* We can't use spl_proc_doulongvec_minmax() in the write
- * case hear because hostid while a hex value has no
+ * case here because hostid while a hex value has no
* leading 0x which confuses the helper function. */
rc = proc_copyin_string(str, sizeof(str), buffer, *lenp);
if (rc < 0)
@@ -506,7 +506,7 @@ SPL_PROC_HANDLER(proc_dohostid)
hw_serial[HW_HOSTID_LEN - 1] = '\0';
*ppos += *lenp;
} else {
- len = snprintf(str, sizeof(str), "%lux", spl_hostid);
+ len = snprintf(str, sizeof(str), "%lx", spl_hostid);
if (*ppos >= len)
rc = 0;
else
@@ -534,7 +534,7 @@ SPL_PROC_HANDLER(proc_dokallsyms_lookup_name)
SRETURN(-EEXIST);
/* We can't use spl_proc_doulongvec_minmax() in the write
- * case hear because the address while a hex value has no
+ * case here because the address while a hex value has no
* leading 0x which confuses the helper function. */
rc = proc_copyin_string(str, sizeof(str), buffer, *lenp);
if (rc < 0)