-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Currently, the dos_x::io::println macro directly passes the formatted string as the first parameter to printf. This is wrong, since printf will then interpret any uses of % as conversion specifications.
The code below should output %d to stdout, but instead it currently prints a random number from the stack:
println!("%d");Instead of printf, the macro should probably call puts(msg) (Which outputs a string as is, and then outputs a newline, so adding the "\n" wouldn't be necessary any more), or call printf("%s", msg);
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working