mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
parent
d503b971f4
commit
e8267acd25
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user