Commit c76a573c authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

minor fix: print_buffer

parent 80b2835a
......@@ -33,7 +33,7 @@
#include <string>
//------------------------------------------------------------------------------
void print_buffer(const std::string app, const std::string mode, const std::string commit, uint8_t *buf, int len) {
void print_buffer(const std::string app, const std::string commit, uint8_t *buf, int len) {
if (!app.compare("amf_app"))
Logger::amf_app().debug(commit.c_str());
if (!app.compare("amf_n1"))
......@@ -42,9 +42,11 @@ void print_buffer(const std::string app, const std::string mode, const std::stri
Logger::amf_server().debug(commit.c_str());
if (!app.compare("amf_n11"))
Logger::amf_n11().debug(commit.c_str());
#if DEBUG_IS_ON
for (int i = 0; i < len; i++)
printf("%x ", buf[i]);
printf("\n");
#endif
}
//------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment