0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
0004 */
0005
0006 #include <stdio.h>
0007 #include <stdlib.h>
0008 #include <init.h>
0009
0010 static __initdata const char *config[] = {
0011 "CONFIG"
0012 };
0013
0014 static int __init print_config(char *line, int *add)
0015 {
0016 int i;
0017 for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
0018 printf("%s", config[i]);
0019 exit(0);
0020 }
0021
0022 __uml_setup("--showconfig", print_config,
0023 "--showconfig\n"
0024 " Prints the config file that this UML binary was generated from.\n\n"
0025 );
0026