Quiet a variable format-string warning.

MFC after:    1 week
This commit is contained in:
Kris Kennaway 2001-07-19 02:16:24 +00:00
parent 58d9a05948
commit a081aa7d72
6 changed files with 12 additions and 12 deletions

View File

@ -1014,7 +1014,7 @@ db_disasm_esc(loc, inst, short_addr, size, seg)
* Normal address modes.
*/
loc = db_read_address(loc, short_addr, regmodrm, &address);
db_printf(fp->f_name);
db_printf("%s", fp->f_name);
switch(fp->f_size) {
case SNGL:
db_printf("s");
@ -1208,12 +1208,12 @@ db_disasm(loc, altfmt)
if (i_size == SDEP) {
if (size == WORD)
db_printf(i_name);
db_printf("%s", i_name);
else
db_printf((const char *)ip->i_extra);
db_printf("%s", (const char *)ip->i_extra);
}
else {
db_printf(i_name);
db_printf("%s", i_name);
if (i_size != NONE) {
if (i_size == BYTE) {
db_printf("b");

View File

@ -934,7 +934,7 @@ trap_fatal(frame, eva)
#endif
printf("trap number = %d\n", type);
if (type <= MAX_TRAP_MSG)
panic(trap_msg[type]);
panic("%s", trap_msg[type]);
else
panic("unknown/reserved trap");
}

View File

@ -215,7 +215,7 @@ static int tlphy_attach(dev)
PRINT("10base5/AUI");
if (sc->sc_mii.mii_capabilities & BMSR_MEDIAMASK) {
printf(sep);
printf("%s", sep);
mii_add_media(mii, sc->sc_mii.mii_capabilities,
sc->sc_mii.mii_inst);
}

View File

@ -257,7 +257,7 @@ vxgetlink(sc)
if (n > 0) {
printf("/");
}
printf(conn_tab[k].name);
printf("%s", conn_tab[k].name);
n++;
}
}

View File

@ -1014,7 +1014,7 @@ db_disasm_esc(loc, inst, short_addr, size, seg)
* Normal address modes.
*/
loc = db_read_address(loc, short_addr, regmodrm, &address);
db_printf(fp->f_name);
db_printf("%s", fp->f_name);
switch(fp->f_size) {
case SNGL:
db_printf("s");
@ -1208,12 +1208,12 @@ db_disasm(loc, altfmt)
if (i_size == SDEP) {
if (size == WORD)
db_printf(i_name);
db_printf("%s", i_name);
else
db_printf((const char *)ip->i_extra);
db_printf("%s", (const char *)ip->i_extra);
}
else {
db_printf(i_name);
db_printf("%s", i_name);
if (i_size != NONE) {
if (i_size == BYTE) {
db_printf("b");

View File

@ -934,7 +934,7 @@ trap_fatal(frame, eva)
#endif
printf("trap number = %d\n", type);
if (type <= MAX_TRAP_MSG)
panic(trap_msg[type]);
panic("%s", trap_msg[type]);
else
panic("unknown/reserved trap");
}