From 7ed79bf42e40a0f3d084403f1617abbbd4e1e5df Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 8 Oct 2016 23:55:57 +0200 Subject: [PATCH] switch dictstat.c to event_log_* --- src/dictstat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dictstat.c b/src/dictstat.c index c6e8827a6..3e13c2fe0 100644 --- a/src/dictstat.c +++ b/src/dictstat.c @@ -6,7 +6,7 @@ #include "common.h" #include "types.h" #include "memory.h" -#include "logging.h" +#include "event.h" #include "dictstat.h" int sort_by_dictstat (const void *s1, const void *s2) @@ -52,7 +52,7 @@ int dictstat_init (hashcat_ctx_t *hashcat_ctx) if (fp == NULL) { - log_error ("ERROR: %s: %s", dictstat_ctx->filename, strerror (errno)); + event_log_error (hashcat_ctx, "ERROR: %s: %s", dictstat_ctx->filename, strerror (errno)); return -1; } @@ -101,7 +101,7 @@ void dictstat_read (hashcat_ctx_t *hashcat_ctx) if (dictstat_ctx->cnt == MAX_DICTSTAT) { - log_error ("ERROR: There are too many entries in the %s database. You have to remove/rename it.", dictstat_ctx->filename); + event_log_error (hashcat_ctx, "ERROR: There are too many entries in the %s database. You have to remove/rename it.", dictstat_ctx->filename); break; } @@ -120,7 +120,7 @@ int dictstat_write (hashcat_ctx_t *hashcat_ctx) if (fp == NULL) { - log_error ("ERROR: %s: %s", dictstat_ctx->filename, strerror (errno)); + event_log_error (hashcat_ctx, "ERROR: %s: %s", dictstat_ctx->filename, strerror (errno)); return -1; } @@ -153,7 +153,7 @@ void dictstat_append (hashcat_ctx_t *hashcat_ctx, dictstat_t *d) if (dictstat_ctx->cnt == MAX_DICTSTAT) { - log_error ("ERROR: There are too many entries in the %s database. You have to remove/rename it.", dictstat_ctx->filename); + event_log_error (hashcat_ctx, "ERROR: There are too many entries in the %s database. You have to remove/rename it.", dictstat_ctx->filename); return; }