X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Fmodel%2FexpandNobits.c;h=d12990e87a995c65c9d7ee9f21cc1acf6ee4528f;hb=bac8986954899053330a952cb6e40d04ec1225b8;hp=648ee210bcdb9706ce8d54b6dd3969bf03a14c91;hpb=2e60e5b7733fbb99009421ca84a5e3cdc49e7fa7;p=centaur.git diff --git a/src/model/expandNobits.c b/src/model/expandNobits.c index 648ee21..d12990e 100644 --- a/src/model/expandNobits.c +++ b/src/model/expandNobits.c @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -33,7 +32,7 @@ void elfu_mExpandNobits(ElfuElf *me, GElf_Off off) * to be filled. This means that it relies on the NOBITS area * being actually 0 bytes, and the expansion would ruin it. */ - fprintf(stderr, "mExpandNobits: Found PHDR spanning expansion offset. Aborting.\n"); + ELFU_WARN("mExpandNobits: Found PHDR spanning expansion offset. Aborting.\n"); return; } } else { @@ -101,7 +100,7 @@ void elfu_mExpandNobits(ElfuElf *me, GElf_Off off) ms->data.d_buf = malloc(ms->shdr.sh_size); memset(ms->data.d_buf, '\0', ms->shdr.sh_size); if (!ms->data.d_buf) { - fprintf(stderr, "mExpandNobits: Could not allocate %jd bytes for NOBITS expansion.\n", ms->shdr.sh_size); + ELFU_WARN("mExpandNobits: Could not allocate %jd bytes for NOBITS expansion.\n", ms->shdr.sh_size); } ms->data.d_align = 1;