diff options
Diffstat (limited to 'src/nautilus-profile.c')
-rw-r--r-- | src/nautilus-profile.c | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/src/nautilus-profile.c b/src/nautilus-profile.c index 444fdc061..3f6c64059 100644 --- a/src/nautilus-profile.c +++ b/src/nautilus-profile.c @@ -38,26 +38,32 @@ _nautilus_profile_log (const char *func, const char *format, ...) { - va_list args; - char *str; - char *formatted; - - if (format == NULL) { - formatted = g_strdup (""); - } else { - va_start (args, format); - formatted = g_strdup_vprintf (format, args); - va_end (args); - } - - if (func != NULL) { - str = g_strdup_printf ("MARK: %s %s: %s %s", g_get_prgname(), func, note ? note : "", formatted); - } else { - str = g_strdup_printf ("MARK: %s: %s %s", g_get_prgname(), note ? note : "", formatted); - } - - g_free (formatted); - - g_access (str, F_OK); - g_free (str); + va_list args; + char *str; + char *formatted; + + if (format == NULL) + { + formatted = g_strdup (""); + } + else + { + va_start (args, format); + formatted = g_strdup_vprintf (format, args); + va_end (args); + } + + if (func != NULL) + { + str = g_strdup_printf ("MARK: %s %s: %s %s", g_get_prgname (), func, note ? note : "", formatted); + } + else + { + str = g_strdup_printf ("MARK: %s: %s %s", g_get_prgname (), note ? note : "", formatted); + } + + g_free (formatted); + + g_access (str, F_OK); + g_free (str); } |