gchar *cmd_utf8_macro_malloc_errorchecking(
gchar *(*func)(const gchar *string,gssize len,gsize *bytes_read,gsize *bytes_written,GError **error),
+ const gchar *func_name,
const gchar *string)
{
GError *error;
NULL, /* bytes_written */
&error); /* error */
if (error) {
- g_log(G_LOG_DOMAIN,G_LOG_LEVEL_WARNING,"captivefs g_filename_from_utf8(): name=\"%s\": %s",
- string,error->message);
+ g_log(G_LOG_DOMAIN,G_LOG_LEVEL_WARNING,"captivefs %s(): name=\"%s\": %s",
+ func_name,string,error->message);
g_clear_error(&error);
}
return r;
gchar *cmd_utf8_macro_malloc_errorchecking(
gchar *(*func)(const gchar *string,gssize len,gsize *bytes_read,gsize *bytes_written,GError **error),
- const gchar *name);
+ const gchar *func_name,
+ const gchar *string);
#define CMD_UTF8_MACRO_ALLOCA(func,string) ({ \
\
_cmd_utf8_macro_alloca_r_malloc=cmd_utf8_macro_malloc_errorchecking( \
func, \
+ G_STRINGIFY(func), \
_cmd_utf8_macro_alloca_string); \
if (!_cmd_utf8_macro_alloca_r_malloc) \
_cmd_utf8_macro_alloca_r=_cmd_utf8_macro_alloca_string; \