]> git.droids-corp.org - protos/libecoli.git/blobdiff - lib/ecoli_node.h
check for double test registration
[protos/libecoli.git] / lib / ecoli_node.h
index f0b02813a900baa2c73466f28fefd5fac20cb305..b0269908bac55d7f5dc04a11aafe13da79fccef2 100644 (file)
@@ -79,13 +79,15 @@ struct ec_completed;
 struct ec_strvec;
 struct ec_keyval;
 
-#define EC_NODE_TYPE_REGISTER(t)                                               \
+#define EC_NODE_TYPE_REGISTER(t)                                       \
        static void ec_node_init_##t(void);                             \
        static void __attribute__((constructor, used))                  \
        ec_node_init_##t(void)                                          \
        {                                                               \
                if (ec_node_type_register(&t) < 0)                      \
-                       fprintf(stderr, "cannot register %s\n", t.name); \
+                       fprintf(stderr,                                 \
+                               "cannot register node type %s\n",       \
+                               t.name);                                \
        }
 
 TAILQ_HEAD(ec_node_type_list, ec_node_type);