patch-2.2.8 linux/scripts/tkgen.c

Next file: linux/scripts/tkparse.c
Previous file: linux/scripts/Menuconfig
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.7/linux/scripts/tkgen.c linux/scripts/tkgen.c
@@ -930,8 +930,11 @@
 
 	case token_hex:
 	case token_int:
+	    printf( "set %s %s\n", cfg->optionname, cfg->value ? cfg->value : "0");
+	    break;
+
 	case token_string:
-	    printf( "set %s %s\n", cfg->optionname, cfg->value );
+	    printf( "set %s \"%s\"\n", cfg->optionname, cfg->value ? cfg->value : "");
 	    break;
 	}
     }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)