T tracer: support float types in traces

This commit is contained in:
Cedric Roux
2024-11-15 16:02:52 +01:00
parent f54ca5714e
commit 0eb0325b96
5 changed files with 16 additions and 1 deletions
+6
View File
@@ -276,3 +276,9 @@ void PUTUL(OBUF *o, unsigned long l) {
sprintf(s, "%lu", l);
PUTS(o, s);
}
void PUTF(OBUF *o, float f) {
char s[256];
sprintf(s, "%g", f);
PUTS(o, s);
}