summaryrefslogtreecommitdiffstats
path: root/src/journald/LMI_JournalLogRecordProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journald/LMI_JournalLogRecordProvider.c')
-rw-r--r--src/journald/LMI_JournalLogRecordProvider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/journald/LMI_JournalLogRecordProvider.c b/src/journald/LMI_JournalLogRecordProvider.c
index cf49535..d16880f 100644
--- a/src/journald/LMI_JournalLogRecordProvider.c
+++ b/src/journald/LMI_JournalLogRecordProvider.c
@@ -27,7 +27,7 @@
#include <glib.h>
#include <systemd/sd-journal.h>
-#include "globals.h"
+
#include "journal.h"
#include "instutil.h"
@@ -42,13 +42,13 @@ static void LMI_JournalLogRecordInitialize(const CMPIContext *ctx)
{
sd_journal *journal;
int r;
- char errbuf[STRERROR_BUF_LEN];
+ char errbuf[BUFLEN];
lmi_init(JOURNAL_CIM_LOG_NAME, _cb, ctx, provider_config_defaults);
r = sd_journal_open(&journal, 0);
if (r < 0) {
- error("Error opening journal: %s\n", strerror_r(-r, errbuf, sizeof(errbuf)));
+ lmi_error("Error opening journal: %s\n", strerror_r(-r, errbuf, sizeof(errbuf)));
return;
}
journal_iter = journal;
@@ -77,7 +77,7 @@ static CMPIStatus LMI_JournalLogRecordEnumInstanceNames(
int r;
LMI_JournalLogRecordRef log_record_ref;
unsigned long count = 0;
- char errbuf[STRERROR_BUF_LEN];
+ char errbuf[BUFLEN];
/* Open our own journal instance to prevent losing cursor position in the global instance */
r = sd_journal_open(&journal, 0);
@@ -145,7 +145,7 @@ static CMPIStatus LMI_JournalLogRecordGetInstance(
{
LMI_JournalLogRecord log_record;
int r;
- char errbuf[STRERROR_BUF_LEN];
+ char errbuf[BUFLEN];
LMI_JournalLogRecord_InitFromObjectPath(&log_record, _cb, cop);
@@ -202,7 +202,7 @@ static CMPIStatus LMI_JournalLogRecordCreateInstance(
int r;
CMPIrc rc;
bool found;
- char errbuf[STRERROR_BUF_LEN];
+ char errbuf[BUFLEN];
cr_cl_n = get_string_property("CreationClassName", ci);
log_cr_cl_n = get_string_property("LogCreationClassName", ci);