Commit 451d2a52 authored by Paul E. McKenney's avatar Paul E. McKenney

torture: Make init program dump command-line arguments

This commit causes the init program generated by mkinitrd.sh dump out
its parameters.  Although this is in some sense redundant given that
the kernel already dumps them out, confirmation can be a good thing.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 93a556b8
...@@ -33,12 +33,16 @@ cat > init.c << '___EOF___' ...@@ -33,12 +33,16 @@ cat > init.c << '___EOF___'
volatile unsigned long delaycount; volatile unsigned long delaycount;
int main(int argc, int argv[]) int main(int argc, char *argv[])
{ {
int i; int i;
struct timeval tv; struct timeval tv;
struct timeval tvb; struct timeval tvb;
printf("Torture-test rudimentary init program started, command line:\n");
for (i = 0; i < argc; i++)
printf(" %s", argv[i]);
printf("\n");
for (;;) { for (;;) {
sleep(1); sleep(1);
/* Need some userspace time. */ /* Need some userspace time. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment