X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fecoli_node_cmd.c;h=db08cbf3aa147d3aafdf7a6f6d64a6a61d9a7b0c;hb=7284aef1f5f33a170cbd04aee7ed0a43608982d6;hp=9f14ae2792749245d3e75442e49fb15eab2f0116;hpb=e0aa24099c9c73831684689da1aa3c05e340e775;p=protos%2Flibecoli.git diff --git a/lib/ecoli_node_cmd.c b/lib/ecoli_node_cmd.c index 9f14ae2..db08cbf 100644 --- a/lib/ecoli_node_cmd.c +++ b/lib/ecoli_node_cmd.c @@ -53,6 +53,8 @@ #include #include +EC_LOG_TYPE_REGISTER(node_cmd); + struct ec_node_cmd { struct ec_node gen; char *cmd_str; /* the command string. */ @@ -505,7 +507,7 @@ static int ec_node_cmd_testcase(void) ec_node_int("y", 20, 30, 10) ); if (node == NULL) { - ec_log(EC_LOG_ERR, "cannot create node\n"); + EC_LOG(EC_LOG_ERR, "cannot create node\n"); return -1; } ret |= EC_TEST_CHECK_PARSE(node, 2, "command", "1"); @@ -518,7 +520,7 @@ static int ec_node_cmd_testcase(void) node = EC_NODE_CMD(NULL, "good morning [count] bob|bobby|michael", ec_node_int("count", 0, 10, 10)); if (node == NULL) { - ec_log(EC_LOG_ERR, "cannot create node\n"); + EC_LOG(EC_LOG_ERR, "cannot create node\n"); return -1; } ret |= EC_TEST_CHECK_PARSE(node, 4, "good", "morning", "1", "bob");