/* * test_ha.c * * Created on: Sep 16, 2010 * Author: lamikr */ #include #include #include #include #include #include "log.h" #include "../src/str_util.h" void test_logging() { log_debug("debug\n"); log_debug("debug v%d.%d\n", 2, 3); log_info("info\n"); log_info("info v%d\n", 2); log_warning("warning\n"); log_warning("warning v%d\n", 2); log_error("error\n"); log_error("error v%d\n", 2); } void test_str_util() { char *res_str; char b_arr[] = {0x1, 0x11, 0x21, 0x31}; res_str = get_as_hex_str(b_arr, 4); log_info("bytes: %s\n", res_str); free(res_str); } int main(int argc, char** argv) { test_logging(); test_str_util(); return 0; }