diff options
author | David Sommerseth <davids@redhat.com> | 2010-01-08 19:26:58 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2010-01-08 19:26:58 +0100 |
commit | 101070880e270118aa1f3992e2734a667dde575e (patch) | |
tree | 131b0bf9d37c6a8062f210fe622bbd2a679426ac /src/efi.c | |
parent | 2d69406de843db678c84cb397afab03e0573c468 (diff) | |
download | python-dmidecode-101070880e270118aa1f3992e2734a667dde575e.tar.gz python-dmidecode-101070880e270118aa1f3992e2734a667dde575e.tar.xz python-dmidecode-101070880e270118aa1f3992e2734a667dde575e.zip |
More fprintf() -> log_append() porting
Diffstat (limited to 'src/efi.c')
-rw-r--r-- | src/efi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -28,6 +28,8 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +#include "dmilog.h" #include "efi.h" /** @@ -42,7 +44,7 @@ * @param size_t* * @return returns EFI_NOT_FOUND or EFI_NO_SMBIOS */ -int address_from_efi(size_t * address) +int address_from_efi(Log_t *logp, size_t * address) { FILE *efi_systab; const char *filename = NULL; @@ -75,7 +77,7 @@ int address_from_efi(size_t * address) perror(filename); if(ret == EFI_NO_SMBIOS) - fprintf(stderr, "%s: SMBIOS entry point missing\n", filename); + log_append(logp, LOG_WARNING, "%s: SMBIOS entry point missing\n", filename); return ret; } |