From 5ebf67efee2893c4d3dc60ec31a0efeb0894d245 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 5 Feb 2010 15:33:39 +0100 Subject: Added logging flag to log_append() to change log behaviour Valid flags are: * LOGFL_NORMAL Log all messages to the log context, and send log message to stderr on errors * LOGFL_NODUPS Log only unique messages. Duplicated messages will be removed * LOGFL_NOSTDERR Don't write to stderr, even if errors occur --- src/efi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/efi.c') diff --git a/src/efi.c b/src/efi.c index af0a813..171ae30 100644 --- a/src/efi.c +++ b/src/efi.c @@ -76,8 +76,9 @@ int address_from_efi(Log_t *logp, size_t * address) if(fclose(efi_systab) != 0) perror(filename); - if(ret == EFI_NO_SMBIOS) - log_append(logp, LOG_WARNING, "%s: SMBIOS entry point missing\n", filename); + if(ret == EFI_NO_SMBIOS) { + log_append(logp, LOGFL_NODUPS, LOG_WARNING, "%s: SMBIOS entry point missing\n", filename); + } return ret; } -- cgit