mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2026-07-27 12:34:22 -04:00
Add the logging framework to the parrot.
This commit is contained in:
+3
-2
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include "Utils.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
@@ -27,7 +28,7 @@ void CUtils::dump(int level, const std::string& title, const unsigned char* data
|
||||
{
|
||||
assert(data != NULL);
|
||||
|
||||
::fprintf(stdout, "%s\n", title.c_str());
|
||||
::Log(level, "%s", title.c_str());
|
||||
|
||||
unsigned int offset = 0U;
|
||||
|
||||
@@ -58,7 +59,7 @@ void CUtils::dump(int level, const std::string& title, const unsigned char* data
|
||||
|
||||
output += '*';
|
||||
|
||||
::fprintf(stdout, "%04X: %s\n", offset, output.c_str());
|
||||
::Log(level, "%04X: %s", offset, output.c_str());
|
||||
|
||||
offset += 16U;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user