[ofa-general] [PATCH] uDAPL (v2.0) linux_osd: use pthread_self instead of getpid for debug messages

Sean Hefty sean.hefty at intel.com
Mon May 18 12:15:57 PDT 2009


please copy the ofw mail list on dapl changes

>diff --git a/dapl/udapl/linux/dapl_osd.h b/dapl/udapl/linux/dapl_osd.h
>index 1c098c5..0378a70 100644
>--- a/dapl/udapl/linux/dapl_osd.h
>+++ b/dapl/udapl/linux/dapl_osd.h
>@@ -572,8 +572,7 @@ dapl_os_strtol(const char *nptr, char **endptr, int base)
> #define dapl_os_vprintf(fmt,args)	vprintf(fmt,args)
> #define dapl_os_syslog(fmt,args)	vsyslog(LOG_USER|LOG_WARNING,fmt,args)
>
>-#define dapl_os_getpid getpid
>-
>+#define dapl_os_getpid (long int)pthread_self

Maybe add a new call, dapl_os_get_thread_id or something similar, to avoid
confusion with the name and what the call returns.




More information about the general mailing list