small changes in formatting for spawn.c example program

master
Anton Lydike 3 years ago
parent 8dc72a2d8e
commit b429c460a1

@ -23,7 +23,8 @@ int main()
); );
// wait for child thread to modify value // wait for child thread to modify value
while (arg == 144) { } while (arg == 144) {
}
dbgln("child exited!", 13); dbgln("child exited!", 13);
@ -36,6 +37,7 @@ int thread(void* args)
int arg = *((int*) args); int arg = *((int*) args);
char buff[32] = "the magic number is: "; char buff[32] = "the magic number is: ";
char* end = itoa(arg, &buff[21], 10); char* end = itoa(arg, &buff[21], 10);
// print given number // print given number
dbgln(buff, (int) (end - buff)); dbgln(buff, (int) (end - buff));
@ -135,4 +137,3 @@ void _start()
wrap_main(); wrap_main();
} }

Loading…
Cancel
Save