Mercurial > pidgin.yaz
changeset 30988:839f3d63acab
Useful snippet of debugging that helped me out.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 18 Sep 2010 01:33:34 +0000 |
parents | d84d306b5610 |
children | 0dc6c4be763d |
files | libpurple/util.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sat Sep 18 00:23:10 2010 +0000 +++ b/libpurple/util.c Sat Sep 18 01:33:34 2010 +0000 @@ -2812,6 +2812,10 @@ progname = g_find_program_in_path(argv[0]); is_valid = (progname != NULL); + if(purple_debug_is_verbose()) + purple_debug_info("program_is_valid", "Tested program %s. %s.\n", program, + is_valid ? "Valid" : "Invalid"); + g_strfreev(argv); g_free(progname);