* wrap pr_debug to include a filename:lineno prefix on each line
*/
-static inline const char *ceph_file_part(const char *s, int len)
-{
- const char *e = s + len;
-
- while (e != s && *(e-1) != '/')
- e--;
- return e;
-}
+extern const char *ceph_file_part(const char *s, int len);
#define _dout(fmt, args...) \
pr_debug(" %12.12s:%-4d : " fmt "%s", \
void ceph_peer_reset(void *p, struct ceph_entity_addr *peer_addr,
struct ceph_entity_name *peer_name);
+/*
+ * find filename portion of a path (/foo/bar/baz -> baz)
+ */
+const char *ceph_file_part(const char *s, int len)
+{
+ const char *e = s + len;
+
+ while (e != s && *(e-1) != '/')
+ e--;
+ return e;
+}
+
+
/*
* super ops
*/