diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-23 12:11:49 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-23 12:11:49 +0100 |
commit | 6ef6490c3136141b346596d2aad81b9cb5d478e9 (patch) | |
tree | 9c91eb4674b34c0571fffbfeaec79520ce9bbcc3 /plugins.c | |
parent | 706a6f88f46a203adfeada1f3d98262d7cc47e47 (diff) |
more diagnostics for bsd
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -43,6 +43,9 @@ #include "junklib.h" #include "vfs.h" +#define trace(...) { fprintf(stderr, __VA_ARGS__); } +//#define trace(fmt,...) + #ifndef PATH_MAX #define PATH_MAX 1024 /* max # of characters in a path name */ #endif @@ -333,6 +336,9 @@ plug_quit (void) { /////// non-api functions (plugin support) void plug_event_call (DB_event_t *ev) { + if (!mutex) { + trace ("plug: event passed before plugin initialization\n"); + } ev->time = time (NULL); // printf ("plug_event_call enter %d\n", ev->event); mutex_lock (mutex); @@ -450,6 +456,7 @@ plug_load_all (void) { fprintf (stderr, "\033[0;31mDISABLE_VERSIONCHECK=1! do not distribute!\033[0;m\n"); #endif const char *conf_blacklist_plugins = conf_get_str ("blacklist_plugins", ""); + trace ("plug: mutex_create\n"); mutex = mutex_create (); const char *dirname = LIBDIR "/deadbeef"; struct dirent **namelist = NULL; |