sr_error takes a sr_softc and a printf like format string + varargs.
There's no need to pass DEVNAME(sc) here.

ok?

Index: softraid.c
===================================================================
RCS file: /mount/openbsd/cvs/src/sys/dev/softraid.c,v
retrieving revision 1.398
diff -u -p -r1.398 softraid.c
--- softraid.c  13 Feb 2020 15:11:32 -0000      1.398
+++ softraid.c  9 Mar 2020 22:37:53 -0000
@@ -3769,7 +3769,7 @@ sr_ioctl_installboot(struct sr_softc *sc
 
                if (sr_rw(sc, chunk->src_dev_mm, bootblk, bbs,
                    SR_BOOT_BLOCKS_OFFSET, B_WRITE)) {
-                       sr_error(sc, "failed to write boot block", DEVNAME(sc));
+                       sr_error(sc, "failed to write boot block");
                        goto done;
                }
 

Reply via email to