What about doing so:
const char* receiver_set_config_path(cmd_parms* cmd, void* cfg, const char* arg)
{
#ifdef DEBUG
fprintf(stderr, "DEBUG %s, %d: %s(..., arg='%s')\n", __FILE__, __LINE__, __FUNCTION__, arg);
#endif
receiver_config_path = arg;
return NULL;
}
Compile using the additional option -DDEBUG
and you'll be getting something printed to stderr
like this:
DEBUG mymodule.c, 42: receiver_set_config_path(..., arg='mypath')