diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-27 17:26:51 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-27 17:26:51 -0400 |
| commit | 3c52a756339a2d96824d21a7d3ad5de7fc1085a0 (patch) | |
| tree | e5299a25ebb76186d6372b700710d7c8c7fe0728 /src/stdlib/mutexeddata.c | |
| parent | 2186e84de0c0fd47ba48eaa35f74ea2754c3b81f (diff) | |
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.
Diffstat (limited to 'src/stdlib/mutexeddata.c')
| -rw-r--r-- | src/stdlib/mutexeddata.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 *) |
