Changeset 11e78d5 for functions.c
- Timestamp:
- Jul 22, 2011, 7:20:26 PM (13 years ago)
- Children:
- 85bb19b
- Parents:
- f661cee
- git-author:
- Jason Gross <jgross@mit.edu> (07/22/11 10:43:43)
- git-committer:
- Jason Gross <jgross@mit.edu> (07/22/11 19:20:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r6500907 r11e78d5 1223 1223 void G_GNUC_PRINTF(1, 2) owl_function_debugmsg(const char *fmt, ...) 1224 1224 { 1225 char *tmpbuff; 1225 1226 FILE *file; 1226 1227 time_t now; … … 1237 1238 now = time(NULL); 1238 1239 1239 fprintf(file, "[%d - %.24s - %lds]: ", 1240 (int) getpid(), ctime(&now), now - owl_global_get_starttime(&g)); 1240 tmpbuff = owl_util_time_to_timestr(localtime(&now)); 1241 fprintf(file, "[%d - %s - %lds]: ", 1242 (int) getpid(), tmpbuff, now - owl_global_get_starttime(&g)); 1243 g_free(tmpbuff); 1241 1244 vfprintf(file, fmt, ap); 1242 1245 putc('\n', file); … … 1761 1764 void owl_function_status(void) 1762 1765 { 1766 char *tmpbuff; 1763 1767 char buff[MAXPATHLEN+1]; 1764 1768 time_t start; … … 1788 1792 owl_fmtext_append_normal(&fm, "\n"); 1789 1793 1790 owl_fmtext_appendf_normal(&fm, " Startup Time: %s", ctime(&start)); 1794 tmpbuff = owl_util_time_to_timestr(localtime(&start)); 1795 owl_fmtext_appendf_normal(&fm, " Startup Time: %s\n", tmpbuff); 1796 g_free(tmpbuff); 1791 1797 1792 1798 up=owl_global_get_runtime(&g); … … 3409 3415 char *buff; 3410 3416 3411 now=time(NULL); 3412 date=g_strdup(ctime(&now)); 3413 date[strlen(date)-1]='\0'; 3417 now = time(NULL); 3418 date = owl_util_time_to_timestr(localtime(&now)); 3414 3419 3415 3420 buff = g_strdup_printf("%s %s", date, string);
Note: See TracChangeset
for help on using the changeset viewer.