mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Replace /*PRINTFLIKEn*/ with attribute(printf)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Issue #12201
This commit is contained in:
+18
-8
@@ -86,7 +86,6 @@
|
||||
boolean_t error_seen;
|
||||
boolean_t is_force;
|
||||
|
||||
/*PRINTFLIKE1*/
|
||||
void
|
||||
vdev_error(const char *fmt, ...)
|
||||
{
|
||||
@@ -704,8 +703,11 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
|
||||
"are present\n"),
|
||||
raidz->zprl_type,
|
||||
mirror->zprl_type,
|
||||
(u_longlong_t)
|
||||
raidz->zprl_parity,
|
||||
(u_longlong_t)
|
||||
mirror->zprl_children - 1,
|
||||
(u_longlong_t)
|
||||
mirror->zprl_children);
|
||||
else
|
||||
return (NULL);
|
||||
@@ -728,7 +730,9 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
|
||||
"%llu are present\n"),
|
||||
lastrep.zprl_type,
|
||||
rep.zprl_type,
|
||||
(u_longlong_t)
|
||||
lastrep.zprl_parity,
|
||||
(u_longlong_t)
|
||||
rep.zprl_parity);
|
||||
else
|
||||
return (NULL);
|
||||
@@ -755,8 +759,9 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
|
||||
"mismatched replication level: "
|
||||
"both %llu and %llu device parity "
|
||||
"%s vdevs are present\n"),
|
||||
(u_longlong_t)
|
||||
lastrep.zprl_parity,
|
||||
rep.zprl_parity,
|
||||
(u_longlong_t)rep.zprl_parity,
|
||||
rep.zprl_type);
|
||||
else
|
||||
return (NULL);
|
||||
@@ -769,7 +774,9 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
|
||||
"mismatched replication level: "
|
||||
"both %llu-way and %llu-way %s "
|
||||
"vdevs are present\n"),
|
||||
(u_longlong_t)
|
||||
lastrep.zprl_children,
|
||||
(u_longlong_t)
|
||||
rep.zprl_children,
|
||||
rep.zprl_type);
|
||||
else
|
||||
@@ -854,9 +861,9 @@ check_replication(nvlist_t *config, nvlist_t *newroot)
|
||||
"and %s vdevs, %llu vs. %llu (%llu-way)\n"),
|
||||
raidz->zprl_type,
|
||||
mirror->zprl_type,
|
||||
raidz->zprl_parity,
|
||||
mirror->zprl_children - 1,
|
||||
mirror->zprl_children);
|
||||
(u_longlong_t)raidz->zprl_parity,
|
||||
(u_longlong_t)mirror->zprl_children - 1,
|
||||
(u_longlong_t)mirror->zprl_children);
|
||||
ret = -1;
|
||||
}
|
||||
} else if (strcmp(current->zprl_type, new->zprl_type) != 0) {
|
||||
@@ -869,14 +876,17 @@ check_replication(nvlist_t *config, nvlist_t *newroot)
|
||||
vdev_error(gettext(
|
||||
"mismatched replication level: pool uses %llu "
|
||||
"device parity and new vdev uses %llu\n"),
|
||||
current->zprl_parity, new->zprl_parity);
|
||||
(u_longlong_t)current->zprl_parity,
|
||||
(u_longlong_t)new->zprl_parity);
|
||||
ret = -1;
|
||||
} else if (current->zprl_children != new->zprl_children) {
|
||||
vdev_error(gettext(
|
||||
"mismatched replication level: pool uses %llu-way "
|
||||
"%s and new vdev uses %llu-way %s\n"),
|
||||
current->zprl_children, current->zprl_type,
|
||||
new->zprl_children, new->zprl_type);
|
||||
(u_longlong_t)current->zprl_children,
|
||||
current->zprl_type,
|
||||
(u_longlong_t)new->zprl_children,
|
||||
new->zprl_type);
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user