diff options
author | Brian Behlendorf <[email protected]> | 2012-07-20 11:12:19 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-07-20 11:14:04 -0700 |
commit | e8267acd25ad566218187716739f0aec5d442e3f (patch) | |
tree | 0f360b752672b3b9859d7be015148eeba6789f2d /module/spl | |
parent | d503b971f4848f1b9d654684f1b3c864baad5d88 (diff) |
32-bit compat, hostid_read()
Explicitly cast the sizeof in hostid_read() to prevent the
following compiler warning on 32-bit systems.
module/spl/spl-generic.c:490:10: error: format '%lu' expects
argument of type 'long unsigned int', but argument 4 has type
'unsigned int' [-Werror=format]
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/spl')
-rw-r--r-- | module/spl/spl-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 785f668d6..13f426733 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -486,8 +486,8 @@ hostid_read(void) if (size < sizeof(HW_HOSTID_MASK)) { printk(KERN_WARNING "SPL: Ignoring the %s file because it is %llu bytes; " - "expecting %lu bytes instead.\n", - spl_hostid_path, size, sizeof(HW_HOSTID_MASK)); + "expecting %lu bytes instead.\n", spl_hostid_path, + size, (unsigned long)sizeof(HW_HOSTID_MASK)); kobj_close_file(file); return -3; } |