shithub: riscv

Download patch

ref: 945fef7ff2ca323f49a2de097e135112a30d47a7
parent: 30f57527109db5f50dfa647316b97e0ec91abea3
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Apr 2 07:12:12 EDT 2022

devdraw: printmesg: implement "z" fmt arg (safe since printmesg is disabled)

--- a/sys/src/9/port/devdraw.c
+++ b/sys/src/9/port/devdraw.c
@@ -1383,6 +1383,10 @@
 			q += sprint(q, " %.4ux", BGSHORT(a));
 			a += 2;
 			break;
+		case 'z':
+			q += sprint(q, " %.*q", (int)*a, (char*)(a+1));
+			a += 1 + *a;
+			break;
 		}
 	}
 	*q++ = '\n';