diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c index 99bbb79..11d1733 100644 --- a/utils/autotune/autotune.c +++ b/utils/autotune/autotune.c @@ -294,8 +294,11 @@ int main(int argc, char *const argv[]) } } - if (background) - daemon(0, 0); + if (background) { + ret = daemon(0, 0); + if (ret) + error(1, errno, "daemon failed"); + } fd = open("/dev/rtdm/autotune", O_RDONLY); if (fd < 0) diff --git a/include/copperplate/debug.h b/include/copperplate/debug.h index 027f12c..d2516ff 100644 --- a/include/copperplate/debug.h +++ b/include/copperplate/debug.h @@ -25,7 +25,7 @@ struct threadobj; -#define debug(__fmt, __args...) \ +#define xeno_debug(__fmt, __args...) \ do { \ struct threadobj *__thobj = threadobj_current(); \ if (__thobj == NULL || \ @@ -35,7 +35,7 @@ struct threadobj; #else /* !CONFIG_XENO_DEBUG */ -#define debug(fmt, args...) do { } while (0) +#define xeno_debug(fmt, args...) do { } while (0) #endif /* !CONFIG_XENO_DEBUG */