| 4917 | } |
| 4918 | |
| 4919 | void |
| 4920 | ghb_log (const char *log, ...) |
| 4921 | { |
| 4922 | va_list args; |
| 4923 | time_t _now; |
| 4924 | struct tm *now; |
| 4925 | gchar fmt[362]; |
| 4926 | |
| 4927 | _now = time(NULL); |
| 4928 | now = localtime( &_now ); |
| 4929 | snprintf(fmt, 362, "[%02d:%02d:%02d] gtkgui: %s\n", |
| 4930 | now->tm_hour, now->tm_min, now->tm_sec, log); |
| 4931 | va_start(args, log); |
| 4932 | vfprintf(stderr, fmt, args); |
| 4933 | va_end(args); |
| 4934 | } |
| 4935 | |
| 4936 | #if GTK_CHECK_VERSION(4, 10, 0) |
| 4937 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
no outgoing calls
no test coverage detected