From 2017c9656f884256b400be40fa25d96d630bf02a Mon Sep 17 00:00:00 2001 From: Rod Evans Date: Fri, 8 May 2009 10:36:22 -0700 Subject: 6831308 ld.so.1: symbol rescanning does a little too much work --- usr/src/cmd/sgs/libld/common/debug.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'usr/src/cmd/sgs/libld/common/debug.c') diff --git a/usr/src/cmd/sgs/libld/common/debug.c b/usr/src/cmd/sgs/libld/common/debug.c index 4ffa5ef19f..127a921987 100644 --- a/usr/src/cmd/sgs/libld/common/debug.c +++ b/usr/src/cmd/sgs/libld/common/debug.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "msg.h" /* @@ -205,6 +206,22 @@ dbg_print(Lm_list *lml, const char *format, ...) } else (void) fputs(MSG_INTL(MSG_DBG_DFLT_FMT), dbg_ofile.fptr); + if (DBG_ISTIME()) { + Conv_time_buf_t buf; + struct timeval new; + + if (gettimeofday(&new, NULL) == 0) { + if (DBG_ISTTIME()) + (void) fputs(conv_time(&DBG_TOTALTIME, &new, + &buf), stderr); + if (DBG_ISDTIME()) + (void) fputs(conv_time(&DBG_DELTATIME, &new, + &buf), stderr); + + DBG_DELTATIME = new; + } + } + va_start(args, format); (void) vfprintf(dbg_ofile.fptr, format, args); (void) fprintf(dbg_ofile.fptr, MSG_ORIG(MSG_STR_NL)); -- cgit v1.2.3