shithub: front

Download patch

ref: 51ff3e65038c3d135dccc8fef354413876da4c4c
parent: 21d7790b3b0dde7f2a641d8815f66dec5cef6d2c
author: qwx <qwx@sciops.net>
date: Mon Aug 4 11:04:12 EDT 2025

vmx: fix format arguments in error messages

--- a/sys/src/cmd/vmx/virtio.c
+++ b/sys/src/cmd/vmx/virtio.c
@@ -697,11 +697,11 @@
 			return -1;
 		}
 		if((d->net.mac[0] & 1) != 0){
-			werrstr("invalid mac addr: must be unicast", d->net.mac[0]);
+			werrstr("invalid mac addr %s: must be unicast", ea);
 			return -1;
 		}
 		if((d->net.mac[0] & 2) == 0){
-			fprint(2, "invalid mac addr: must not be local", d->net.mac[0]);
+			fprint(2, "invalid mac addr %s: must not be local", ea);
 			return -1;
 		}
 	}
--