From dcad6a899acf825c642f209537cb6e9b16de03a6 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 6 Nov 2003 22:58:52 +0000 Subject: [PATCH] 2003-11-06 Jeff Johnston * libc/sys/linux/linuxthreads/td_init.c: Replace function name in LOG() macro so this will compile on gcc 3.4 and up. * libc/sys/linux/linuxthreads/td_log.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto. --- newlib/ChangeLog | 41 +++++++++++++++++++ newlib/libc/sys/linux/linuxthreads/td_init.c | 2 +- newlib/libc/sys/linux/linuxthreads/td_log.c | 2 +- .../linux/linuxthreads/td_ta_clear_event.c | 2 +- .../sys/linux/linuxthreads/td_ta_delete.c | 2 +- .../linux/linuxthreads/td_ta_enable_stats.c | 2 +- .../sys/linux/linuxthreads/td_ta_event_addr.c | 2 +- .../linux/linuxthreads/td_ta_event_getmsg.c | 2 +- .../linux/linuxthreads/td_ta_get_nthreads.c | 2 +- .../sys/linux/linuxthreads/td_ta_get_ph.c | 2 +- .../sys/linux/linuxthreads/td_ta_get_stats.c | 2 +- .../sys/linux/linuxthreads/td_ta_map_id2thr.c | 2 +- .../linux/linuxthreads/td_ta_map_lwp2thr.c | 2 +- .../libc/sys/linux/linuxthreads/td_ta_new.c | 2 +- .../linux/linuxthreads/td_ta_reset_stats.c | 2 +- .../sys/linux/linuxthreads/td_ta_set_event.c | 2 +- .../linux/linuxthreads/td_ta_setconcurrency.c | 2 +- .../sys/linux/linuxthreads/td_ta_thr_iter.c | 2 +- .../sys/linux/linuxthreads/td_ta_tsd_iter.c | 2 +- .../linux/linuxthreads/td_thr_clear_event.c | 2 +- .../sys/linux/linuxthreads/td_thr_dbresume.c | 2 +- .../sys/linux/linuxthreads/td_thr_dbsuspend.c | 2 +- .../linux/linuxthreads/td_thr_event_enable.c | 2 +- .../linux/linuxthreads/td_thr_event_getmsg.c | 2 +- .../sys/linux/linuxthreads/td_thr_get_info.c | 2 +- .../sys/linux/linuxthreads/td_thr_getfpregs.c | 2 +- .../sys/linux/linuxthreads/td_thr_getgregs.c | 2 +- .../sys/linux/linuxthreads/td_thr_getxregs.c | 2 +- .../linux/linuxthreads/td_thr_getxregsize.c | 2 +- .../sys/linux/linuxthreads/td_thr_set_event.c | 2 +- .../sys/linux/linuxthreads/td_thr_setfpregs.c | 2 +- .../sys/linux/linuxthreads/td_thr_setgregs.c | 2 +- .../sys/linux/linuxthreads/td_thr_setprio.c | 2 +- .../linux/linuxthreads/td_thr_setsigpending.c | 2 +- .../sys/linux/linuxthreads/td_thr_setxregs.c | 2 +- .../linux/linuxthreads/td_thr_sigsetmask.c | 2 +- .../libc/sys/linux/linuxthreads/td_thr_tsd.c | 2 +- .../sys/linux/linuxthreads/td_thr_validate.c | 2 +- 38 files changed, 78 insertions(+), 37 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2f1672edd..08e5ba92d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,44 @@ +2003-11-06 Jeff Johnston + + * libc/sys/linux/linuxthreads/td_init.c: Replace function name + in LOG() macro so this will compile on gcc 3.4 and up. + * libc/sys/linux/linuxthreads/td_log.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto. + * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto. + * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto. + 2003-11-05 Jeff Johnston Artem B. Bityuckiy diff --git a/newlib/libc/sys/linux/linuxthreads/td_init.c b/newlib/libc/sys/linux/linuxthreads/td_init.c index 6c4dfc623..c9d08e9ac 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_init.c +++ b/newlib/libc/sys/linux/linuxthreads/td_init.c @@ -27,6 +27,6 @@ td_err_e td_init (void) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_init"); return TD_OK; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_log.c b/newlib/libc/sys/linux/linuxthreads/td_log.c index 2007eaacc..531cf87d3 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_log.c +++ b/newlib/libc/sys/linux/linuxthreads/td_log.c @@ -27,6 +27,6 @@ td_log (void) /* This interface is deprecated in the Sun interface. We provide it for compatibility but don't do anyhting ourself. We might in future do some logging if this seems reasonable. */ - LOG (__FUNCTION__); + LOG ("td_log"); return TD_OK; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_clear_event.c b/newlib/libc/sys/linux/linuxthreads/td_ta_clear_event.c index fc7fde135..151283394 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_clear_event.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_clear_event.c @@ -29,7 +29,7 @@ td_ta_clear_event (ta, event) td_thr_events_t old_event; int i; - LOG (__FUNCTION__); + LOG ("td_ta_clear_event"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_delete.c b/newlib/libc/sys/linux/linuxthreads/td_ta_delete.c index 5d235630d..6af436813 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_delete.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_delete.c @@ -26,7 +26,7 @@ td_err_e td_ta_delete (td_thragent_t *ta) { - LOG (__FUNCTION__); + LOG ("td_ta_delete"); /* Safety check. */ if (ta == NULL || __td_agent_list == NULL) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_enable_stats.c b/newlib/libc/sys/linux/linuxthreads/td_ta_enable_stats.c index 5a6fef7ee..43de1b2e6 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_enable_stats.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_enable_stats.c @@ -25,7 +25,7 @@ td_err_e td_ta_enable_stats (const td_thragent_t *ta, int enable) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_ta_enable_stats"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_event_addr.c b/newlib/libc/sys/linux/linuxthreads/td_ta_event_addr.c index 4f0f7bbf1..8bce35ae8 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_event_addr.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_event_addr.c @@ -27,7 +27,7 @@ td_ta_event_addr (const td_thragent_t *ta, td_event_e event, td_notify_t *addr) td_err_e res = TD_NOEVENT; int idx = -1; - LOG (__FUNCTION__); + LOG ("td_ta_event_addr"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_event_getmsg.c b/newlib/libc/sys/linux/linuxthreads/td_ta_event_getmsg.c index a63a3d0a7..a4ccba3d0 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_event_getmsg.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_event_getmsg.c @@ -32,7 +32,7 @@ td_ta_event_getmsg (const td_thragent_t *ta, td_event_msg_t *msg) td_eventbuf_t event; psaddr_t addr; - LOG (__FUNCTION__); + LOG ("td_ta_event_getmsg"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_get_nthreads.c b/newlib/libc/sys/linux/linuxthreads/td_ta_get_nthreads.c index f275a25e7..839b56be5 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_get_nthreads.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_get_nthreads.c @@ -25,7 +25,7 @@ td_ta_get_nthreads (const td_thragent_t *ta, int *np) { psaddr_t addr; - LOG (__FUNCTION__); + LOG ("td_ta_get_nthreads"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_get_ph.c b/newlib/libc/sys/linux/linuxthreads/td_ta_get_ph.c index e08d52137..ffa833d92 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_get_ph.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_get_ph.c @@ -24,7 +24,7 @@ td_err_e td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph) { - LOG (__FUNCTION__); + LOG ("td_ta_get_ph"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_get_stats.c b/newlib/libc/sys/linux/linuxthreads/td_ta_get_stats.c index 9aa049c3e..d2ba342d7 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_get_stats.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_get_stats.c @@ -25,7 +25,7 @@ td_err_e td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_ta_get_stats"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_map_id2thr.c b/newlib/libc/sys/linux/linuxthreads/td_ta_map_id2thr.c index 5171a5bf1..184f2de2e 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_map_id2thr.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_map_id2thr.c @@ -28,7 +28,7 @@ td_ta_map_id2thr (const td_thragent_t *ta, pthread_t pt, td_thrhandle_t *th) struct _pthread_descr_struct pds; int pthread_threads_max; - LOG (__FUNCTION__); + LOG ("td_ta_map_id2thr"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c b/newlib/libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c index 8ae5aec78..78b9fbb66 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c @@ -34,7 +34,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th) # define num 1 #endif - LOG (__FUNCTION__); + LOG ("td_ta_map_lwp2thr"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_new.c b/newlib/libc/sys/linux/linuxthreads/td_ta_new.c index 7bf687905..7505f53e6 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_new.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_new.c @@ -35,7 +35,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta) psaddr_t addr; struct agent_list *elemp; - LOG (__FUNCTION__); + LOG ("td_ta_new"); /* Get the global event mask. This is one of the variables which are new in the thread library to enable debugging. If it is diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_reset_stats.c b/newlib/libc/sys/linux/linuxthreads/td_ta_reset_stats.c index 9cc386cf8..533d4c412 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_reset_stats.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_reset_stats.c @@ -25,7 +25,7 @@ td_err_e td_ta_reset_stats (const td_thragent_t *ta) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_ta_reset_stats"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_set_event.c b/newlib/libc/sys/linux/linuxthreads/td_ta_set_event.c index 0ea8fc119..041aaec40 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_set_event.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_set_event.c @@ -29,7 +29,7 @@ td_ta_set_event (ta, event) td_thr_events_t old_event; int i; - LOG (__FUNCTION__); + LOG ("td_ta_set_event"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_setconcurrency.c b/newlib/libc/sys/linux/linuxthreads/td_ta_setconcurrency.c index 25c1c90c7..da15a0f61 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_setconcurrency.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_setconcurrency.c @@ -25,7 +25,7 @@ td_err_e td_ta_setconcurrency (const td_thragent_t *ta, int level) { /* This is something LinuxThreads does not support. */ - LOG (__FUNCTION__); + LOG ("td_ta_setconcurrency"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_thr_iter.c b/newlib/libc/sys/linux/linuxthreads/td_ta_thr_iter.c index 4c6f3f4cb..a77186d22 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_thr_iter.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_thr_iter.c @@ -86,7 +86,7 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback, # define num 1 #endif - LOG (__FUNCTION__); + LOG ("td_ta_thr_iter"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_ta_tsd_iter.c b/newlib/libc/sys/linux/linuxthreads/td_ta_tsd_iter.c index f29938564..92ceb1f28 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_ta_tsd_iter.c +++ b/newlib/libc/sys/linux/linuxthreads/td_ta_tsd_iter.c @@ -29,7 +29,7 @@ td_ta_tsd_iter (const td_thragent_t *ta, td_key_iter_f *callback, int pthread_keys_max; int cnt; - LOG (__FUNCTION__); + LOG ("td_ta_tsd_iter"); /* Test whether the TA parameter is ok. */ if (! ta_ok (ta)) diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_clear_event.c b/newlib/libc/sys/linux/linuxthreads/td_thr_clear_event.c index b75c0f0aa..e40e4c36c 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_clear_event.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_clear_event.c @@ -31,7 +31,7 @@ td_thr_clear_event (th, event) td_thr_events_t old_event; int i; - LOG (__FUNCTION__); + LOG ("td_thr_clear_event"); /* Write the new value into the thread data structure. */ if (ps_pdread (th->th_ta_p->ph, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_dbresume.c b/newlib/libc/sys/linux/linuxthreads/td_thr_dbresume.c index 68d62afd4..dbe10bc1c 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_dbresume.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_dbresume.c @@ -25,6 +25,6 @@ td_err_e td_thr_dbresume (const td_thrhandle_t *th) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_thr_dbresume"); return TD_NOCAPAB; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_dbsuspend.c b/newlib/libc/sys/linux/linuxthreads/td_thr_dbsuspend.c index 0655a1756..f96be3628 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_dbsuspend.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_dbsuspend.c @@ -25,6 +25,6 @@ td_err_e td_thr_dbsuspend (const td_thrhandle_t *th) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_thr_dbsuspend"); return TD_NOCAPAB; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_event_enable.c b/newlib/libc/sys/linux/linuxthreads/td_thr_event_enable.c index 007f2a464..3eecd21e2 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_event_enable.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_event_enable.c @@ -28,7 +28,7 @@ td_thr_event_enable (th, onoff) const td_thrhandle_t *th; int onoff; { - LOG (__FUNCTION__); + LOG ("td_thr_event_enable"); /* Write the new value into the thread data structure. */ if (ps_pdwrite (th->th_ta_p->ph, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_event_getmsg.c b/newlib/libc/sys/linux/linuxthreads/td_thr_event_getmsg.c index 95b05ff07..582e89e5f 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_event_getmsg.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_event_getmsg.c @@ -29,7 +29,7 @@ td_thr_event_getmsg (const td_thrhandle_t *th, td_event_msg_t *msg) { td_eventbuf_t event; - LOG (__FUNCTION__); + LOG ("td_thr_event_getmsg"); /* Read the even structure from the target. */ if (ps_pdread (th->th_ta_p->ph, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_get_info.c b/newlib/libc/sys/linux/linuxthreads/td_thr_get_info.c index ed6b20f59..b4979583a 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_get_info.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_get_info.c @@ -29,7 +29,7 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop) { struct _pthread_descr_struct pds; - LOG (__FUNCTION__); + LOG ("td_thr_get_info"); /* Get the thread descriptor. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_getfpregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_getfpregs.c index 67d5cd1e2..b453cc0e9 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_getfpregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_getfpregs.c @@ -26,7 +26,7 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset) { struct _pthread_descr_struct pds; - LOG (__FUNCTION__); + LOG ("td_thr_getfpregs"); /* We have to get the state and the PID for this thread. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_getgregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_getgregs.c index 5a42b6770..462a1a192 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_getgregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_getgregs.c @@ -26,7 +26,7 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs) { struct _pthread_descr_struct pds; - LOG (__FUNCTION__); + LOG ("td_thr_getgregs"); /* We have to get the state and the PID for this thread. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_getxregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_getxregs.c index 615d88296..a5194568c 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_getxregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_getxregs.c @@ -25,6 +25,6 @@ td_err_e td_thr_getxregs (const td_thrhandle_t *th, void *xregs) { /* XXX This might be platform specific. */ - LOG (__FUNCTION__); + LOG ("td_thr_getxregs"); return TD_NOXREGS; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_getxregsize.c b/newlib/libc/sys/linux/linuxthreads/td_thr_getxregsize.c index ed55bbab7..ddf8cbbe6 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_getxregsize.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_getxregsize.c @@ -25,6 +25,6 @@ td_err_e td_thr_getxregsize (const td_thrhandle_t *th, int *sizep) { /* XXX This might be platform specific. */ - LOG (__FUNCTION__); + LOG ("td_thr_getxregsize"); return TD_NOXREGS; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_set_event.c b/newlib/libc/sys/linux/linuxthreads/td_thr_set_event.c index f537cce05..6171155b6 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_set_event.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_set_event.c @@ -31,7 +31,7 @@ td_thr_set_event (th, event) td_thr_events_t old_event; int i; - LOG (__FUNCTION__); + LOG ("td_thr_set_event"); /* Write the new value into the thread data structure. */ if (ps_pdread (th->th_ta_p->ph, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_setfpregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_setfpregs.c index d5e1ce35a..0d4fce540 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_setfpregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_setfpregs.c @@ -26,7 +26,7 @@ td_thr_setfpregs (const td_thrhandle_t *th, const prfpregset_t *fpregs) { struct _pthread_descr_struct pds; - LOG (__FUNCTION__); + LOG ("td_thr_setfpregs"); /* We have to get the state and the PID for this thread. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_setgregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_setgregs.c index 8c7baa8e9..3cf653956 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_setgregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_setgregs.c @@ -26,7 +26,7 @@ td_thr_setgregs (const td_thrhandle_t *th, prgregset_t gregs) { struct _pthread_descr_struct pds; - LOG (__FUNCTION__); + LOG ("td_thr_setgregs"); /* We have to get the state and the PID for this thread. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_setprio.c b/newlib/libc/sys/linux/linuxthreads/td_thr_setprio.c index c1e3ca5b1..01eab4811 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_setprio.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_setprio.c @@ -25,6 +25,6 @@ td_err_e td_thr_setprio (const td_thrhandle_t *th, int prio) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_thr_setprio"); return TD_OK; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_setsigpending.c b/newlib/libc/sys/linux/linuxthreads/td_thr_setsigpending.c index bec429ea1..6ecd74787 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_setsigpending.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_setsigpending.c @@ -26,6 +26,6 @@ td_thr_setsigpending (const td_thrhandle_t *th, unsigned char n, const sigset_t *ss) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_thr_setsigpending"); return TD_OK; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_setxregs.c b/newlib/libc/sys/linux/linuxthreads/td_thr_setxregs.c index c1915e5e9..15ea14a66 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_setxregs.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_setxregs.c @@ -25,6 +25,6 @@ td_err_e td_thr_setxregs (const td_thrhandle_t *ta, const void *addr) { /* XXX This might have to be platform specific. */ - LOG (__FUNCTION__); + LOG ("td_thr_setxregs"); return TD_NOXREGS; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_sigsetmask.c b/newlib/libc/sys/linux/linuxthreads/td_thr_sigsetmask.c index ef3ebcbb8..79f144328 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_sigsetmask.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_sigsetmask.c @@ -25,6 +25,6 @@ td_err_e td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss) { /* XXX We have to figure out what has to be done. */ - LOG (__FUNCTION__); + LOG ("td_thr_sigsetmask"); return TD_OK; } diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_tsd.c b/newlib/libc/sys/linux/linuxthreads/td_thr_tsd.c index 302033681..192b42571 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_tsd.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_tsd.c @@ -33,7 +33,7 @@ td_thr_tsd (const td_thrhandle_t *th, const thread_key_t tk, void **data) unsigned int idx2nd; void *p; - LOG (__FUNCTION__); + LOG ("td_thr_tsd"); /* Get the thread descriptor. */ if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, diff --git a/newlib/libc/sys/linux/linuxthreads/td_thr_validate.c b/newlib/libc/sys/linux/linuxthreads/td_thr_validate.c index 354471071..8821f0e84 100644 --- a/newlib/libc/sys/linux/linuxthreads/td_thr_validate.c +++ b/newlib/libc/sys/linux/linuxthreads/td_thr_validate.c @@ -28,7 +28,7 @@ td_thr_validate (const td_thrhandle_t *th) int pthread_threads_max = th->th_ta_p->pthread_threads_max; int cnt; - LOG (__FUNCTION__); + LOG ("td_thr_validate"); /* Now get all descriptors, one after the other. */ for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)