shithub: riscv

Download patch

ref: ddbe5dd29a90b5750b816105a830a420baaea269
parent: 02ebad70435ee4f1f85db8998b920d899ce346aa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 12 12:13:01 EST 2023

zynq: fix print format in emmc driver

--- a/sys/src/9/zynq/emmc.c
+++ b/sys/src/9/zynq/emmc.c
@@ -307,10 +307,10 @@
 		emmc.datadone = 0;
 		r[Irpten] = 0;
 		if((i & Datadone) == 0)
-			print("emmcio: no Datadone after CMD%d\n", cmd);
+			print("emmcio: no Datadone after %s\n", cmd->name);
 		if(i & Err)
-			print("emmcio: CMD%d error interrupt %ux\n",
-				cmd, r[Interrupt]);
+			print("emmcio: %s error interrupt %ux\n",
+				cmd->name, r[Interrupt]);
 		r[Interrupt] = i;
 	}
 	return 0;