Use warn() for warnings

This commit is contained in:
Rodrigo Arias 2023-02-21 15:42:42 +01:00 committed by Rodrigo Arias Mallo
parent 69506e5079
commit 4f49289bf5
4 changed files with 5 additions and 5 deletions

View File

@ -415,7 +415,7 @@ pre_task(struct emu *emu)
int ret = 0;
switch (emu->ev->v) {
case 'C':
err("warning: got old 6TC event, ignoring");
warn("got old 6TC event, ignoring");
break;
case 'c':
ret = create_task(emu);

View File

@ -302,7 +302,7 @@ stream_winsort(struct stream *stream, struct ring *r)
}
if (empty_regions > 0)
err("warning: stream %s contains %ld empty sort regions\n",
warn("stream %s contains %ld empty sort regions\n",
stream->relpath, empty_regions);
if (updated && fdatasync(fd) < 0)

View File

@ -114,7 +114,7 @@ stream_load(struct stream *stream, const char *tracedir, const char *relpath)
if (stream->offset < stream->size) {
stream->active = 1;
} else if (stream->offset == stream->size) {
err("warning: stream '%s' has zero events", stream->relpath);
warn("stream '%s' has zero events", stream->relpath);
stream->active = 0;
} else {
err("impossible, offset %ld bigger than size %ld",

View File

@ -151,7 +151,7 @@ create_system(struct system *sys, struct trace *trace)
size_t i = 0;
for (struct stream *s = trace->streams; s ; s = s->next) {
if (!loom_matches(s->relpath)) {
err("warning: ignoring unknown stream %s", s->relpath);
warn("ignoring unknown stream %s", s->relpath);
continue;
}
@ -404,7 +404,7 @@ init_offsets(struct system *sys, struct trace *trace)
/* If we have more than one hostname and no offset table has been found,
* we won't be able to synchronize the clocks */
if (n == 0 && sys->nlooms > 1) {
err("warning: no clock offset file loaded with %ld looms",
warn("no clock offset file loaded with %ld looms",
sys->nlooms);
}