1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00

switch dictstat.c to event_log_*

This commit is contained in:
jsteube 2016-10-08 23:55:57 +02:00
parent 2a2df035e6
commit 7ed79bf42e

View File

@ -6,7 +6,7 @@
#include "common.h" #include "common.h"
#include "types.h" #include "types.h"
#include "memory.h" #include "memory.h"
#include "logging.h" #include "event.h"
#include "dictstat.h" #include "dictstat.h"
int sort_by_dictstat (const void *s1, const void *s2) 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) 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; return -1;
} }
@ -101,7 +101,7 @@ void dictstat_read (hashcat_ctx_t *hashcat_ctx)
if (dictstat_ctx->cnt == MAX_DICTSTAT) 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; break;
} }
@ -120,7 +120,7 @@ int dictstat_write (hashcat_ctx_t *hashcat_ctx)
if (fp == NULL) 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; return -1;
} }
@ -153,7 +153,7 @@ void dictstat_append (hashcat_ctx_t *hashcat_ctx, dictstat_t *d)
if (dictstat_ctx->cnt == MAX_DICTSTAT) 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; return;
} }