Skip to content

Commit 451d2a5

Browse files
committed
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: Paul E. McKenney <[email protected]>
1 parent 93a556b commit 451d2a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/testing/selftests/rcutorture/bin/mkinitrd.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ cat > init.c << '___EOF___'
3333
3434
volatile unsigned long delaycount;
3535
36-
int main(int argc, int argv[])
36+
int main(int argc, char *argv[])
3737
{
3838
int i;
3939
struct timeval tv;
4040
struct timeval tvb;
4141
42+
printf("Torture-test rudimentary init program started, command line:\n");
43+
for (i = 0; i < argc; i++)
44+
printf(" %s", argv[i]);
45+
printf("\n");
4246
for (;;) {
4347
sleep(1);
4448
/* Need some userspace time. */

0 commit comments

Comments
 (0)