From 224b03a1f875181c493652971dca7d3dd340b046 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 16 Oct 2019 15:09:20 +0200 Subject: [PATCH] chg printf.. --- client/guidummy.cpp | 3 ++- client/hardnested/hardnested_bruteforce.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/guidummy.cpp b/client/guidummy.cpp index 8557b0015..2ea6c2e46 100644 --- a/client/guidummy.cpp +++ b/client/guidummy.cpp @@ -9,12 +9,13 @@ //----------------------------------------------------------------------------- #include +#include "ui.h" extern "C" void ShowGraphWindow(void) { static int warned = 0; if (!warned) { - printf("No GUI in this build!\n"); + PrintAndLogEx(INFO, "No GUI in this build!"); warned = 1; } } diff --git a/client/hardnested/hardnested_bruteforce.c b/client/hardnested/hardnested_bruteforce.c index 3aea34a96..4af190d71 100644 --- a/client/hardnested/hardnested_bruteforce.c +++ b/client/hardnested/hardnested_bruteforce.c @@ -164,7 +164,7 @@ crack_states_thread(void *x) { statelist_t *bucket = buckets[current_bucket]; if (bucket) { #if defined (DEBUG_BRUTE_FORCE) - printf("Thread %u starts working on bucket %u\n", thread_id, current_bucket); + PrintAndLogEx(INFO, "Thread %u starts working on bucket %u\n", thread_id, current_bucket); #endif const uint64_t key = crack_states_bitsliced(thread_arg->cuid, thread_arg->best_first_bytes, bucket, &keys_found, &num_keys_tested, nonces_to_bruteforce, bf_test_nonce_2nd_byte, thread_arg->nonces); if (key != -1) {