mirror of
https://github.com/simh/simh.git
synced 2026-03-01 01:30:30 +00:00
VAXen with console ROMs: Issue meaningful message for invalid boot command args
This commit is contained in:
@@ -898,7 +898,7 @@ char gbuf[CBUFSIZE];
|
||||
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
@@ -836,7 +836,7 @@ char gbuf[CBUFSIZE];
|
||||
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
@@ -957,7 +957,7 @@ char gbuf[CBUFSIZE];
|
||||
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
@@ -954,7 +954,7 @@ char gbuf[CBUFSIZE];
|
||||
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
@@ -903,7 +903,7 @@ if ((ptr = get_sim_sw (ptr)) == NULL) /* get switches */
|
||||
return SCPE_INVSW;
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
@@ -1700,7 +1700,7 @@ if ((ptr = get_sim_sw (ptr)) == NULL) /* get switches */
|
||||
return SCPE_INVSW;
|
||||
get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||
if (gbuf[0] && strcmp (gbuf, "CPU"))
|
||||
return SCPE_ARG; /* Only can specify CPU device */
|
||||
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user