From 3c52a756339a2d96824d21a7d3ad5de7fc1085a0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 27 Mar 2025 17:26:51 -0400 Subject: Deprecate custom printf specifiers in favor of print() function that uses _Generic() to generically convert any value to a string or print as a string. --- src/stdlib/mutexeddata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/stdlib/mutexeddata.c') diff --git a/src/stdlib/mutexeddata.c b/src/stdlib/mutexeddata.c index f47adfc1..ead154e7 100644 --- a/src/stdlib/mutexeddata.c +++ b/src/stdlib/mutexeddata.c @@ -20,7 +20,8 @@ static Text_t MutexedData$as_text(const void *m, bool colorize, const TypeInfo_t if (!m) { return Texts(colorize ? Text("\x1b[34;1mmutexed\x1b[m(") : Text("mutexed("), typename, Text(")")); } - return Text$format(colorize ? "\x1b[34;1mmutexed %k<%p>\x1b[m" : "mutexed %k<%p>", &typename, *((MutexedData_t*)m)); + return Texts(colorize ? Text("\x1b[34;1mmutexed ") : Text("mutexed "), typename, + Text$format(colorize ? "<%p>\x1b[m" : "<%p>", *((MutexedData_t*)m))); } static bool MutexedData$is_none(const void *m, const TypeInfo_t *) -- cgit v1.2.3