Format string error in warn()
This commit is contained in:
parent
7db4903d42
commit
c4dfae1d3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68904
@ -170,7 +170,7 @@ aml_simulation_regload(const char *dumpfile)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((fp = fopen(dumpfile, "r")) == NULL) {
|
if ((fp = fopen(dumpfile, "r")) == NULL) {
|
||||||
warn(dumpfile);
|
warn("%s", dumpfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (fgets(buf, sizeof buf, fp) != NULL) {
|
while (fgets(buf, sizeof buf, fp) != NULL) {
|
||||||
@ -494,7 +494,7 @@ aml_simulation_regdump(const char *dumpfile)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((fp = fopen(dumpfile, "w")) == NULL) {
|
if ((fp = fopen(dumpfile, "w")) == NULL) {
|
||||||
warn(dumpfile);
|
warn("%s", dumpfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (!TAILQ_EMPTY(&RegionContentList)) {
|
while (!TAILQ_EMPTY(&RegionContentList)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user