DnD: Add line number to debug messages
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 25 Feb 2015 08:36:13 +0000 (10:36 +0200)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Wed, 25 Feb 2015 08:36:13 +0000 (10:36 +0200)
src/lib/elm_cnp.c

index 4f961f9..f04e11c 100644 (file)
@@ -10,7 +10,7 @@
 
 //#define DEBUGON 1
 #ifdef DEBUGON
-# define cnp_debug(fmt, args...) fprintf(stderr, __FILE__":%s : " fmt , __FUNCTION__, ##args)
+# define cnp_debug(fmt, args...) fprintf(stderr, __FILE__":%s/%d : " fmt , __FUNCTION__, __LINE__, ##args)
 #else
 # define cnp_debug(x...) do { } while (0)
 #endif