mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
fix run-toolchain, qemu-monitor, trace-boot, trace2line, bisect-linux-boot-gem5. Fixes part of #63
I'm sad no one reported qemu-monitor break, that one is kind of important. count.out arguments broke it as an init program, since the kernel adds trash parameters to every init. Is anyone using this repo, I wonder? Keep pushing, keep pushing. One day it gets good enough, and the whole world will see.
This commit is contained in:
@@ -8,14 +8,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
unsigned long i = 0, max;
|
||||
if (argc > 1) {
|
||||
max = strtoul(argv[1], NULL, 10);
|
||||
} else {
|
||||
max = ULONG_MAX;
|
||||
}
|
||||
while (i < max) {
|
||||
int main(void) {
|
||||
unsigned long i = 0;
|
||||
while (1) {
|
||||
printf("%lu\n", i);
|
||||
i++;
|
||||
sleep(1);
|
||||
|
||||
Reference in New Issue
Block a user