]> granicus.if.org Git - spl/commitdiff
Correct typos in the spl proc handler.
authorDarik Horn <dajhorn@vanadac.com>
Mon, 25 Apr 2011 01:48:56 +0000 (20:48 -0500)
committerDarik Horn <dajhorn@vanadac.com>
Mon, 25 Apr 2011 01:56:07 +0000 (20:56 -0500)
Correct a format typo that causes /proc/sys/kernel/spl/hostid
to return a decimal number instead of a hexadecimal number.

module/spl/spl-proc.c

index fa0d1fb3d3d87d667ace8ed7b0b943a5f1cd91e4..1b353ceb28fea3a2300f41899865fa9d1e9f6497 100644 (file)
@@ -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)