]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
class: add CLS_LOG macro
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 18 May 2010 18:01:31 +0000 (11:01 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 21:45:39 +0000 (14:45 -0700)
src/objclass/objclass.h

index 0af8906d9eae92bd91a8576e0ab5c09dc7502120..74ad231c9f015ee889a1246604f571de91b791e6 100644 (file)
@@ -18,6 +18,9 @@ int __cls_name__## name = 0;
 #define CLS_METHOD_WR  0x2
 
 
+#define CLS_LOG(fmt, ...) \
+       cls_log("<cls> %s:%d: " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
+
 typedef void *cls_handle_t;
 typedef void *cls_method_handle_t;
 typedef void *cls_method_context_t;