From a82a5dc26a1c9686341d8f42ea6d5dcdacf0aa7c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 Oct 2018 16:36:45 +0200 Subject: [PATCH] context: make some errors less verbose, like libpulse --- src/context.c | 2 +- src/internal.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/context.c b/src/context.c index b4bc10afe..3eedcfca5 100644 --- a/src/context.c +++ b/src/context.c @@ -33,7 +33,7 @@ int pa_context_set_error(pa_context *c, int error) { pa_assert(error >= 0); pa_assert(error < PA_ERR_MAX); - pw_log_error("context %p: error %d", c, error); + pw_log_debug("context %p: error %d", c, error); if (c) c->error = error; return error; diff --git a/src/internal.h b/src/internal.h index bb2483ae6..f7f5b3741 100644 --- a/src/internal.h +++ b/src/internal.h @@ -110,8 +110,6 @@ int pa_context_set_error(pa_context *c, int error); #define PA_CHECK_VALIDITY(context, expression, error) \ do { \ if (!(expression)) { \ - fprintf(stderr, "'%s' failed at %s:%u %s()", \ - #expression , __FILE__, __LINE__, __func__); \ return -pa_context_set_error((context), (error)); \ } \ } while(false) @@ -119,8 +117,6 @@ do { \ #define PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, value) \ do { \ if (!(expression)) { \ - fprintf(stderr, "'%s' failed at %s:%u %s()", \ - #expression , __FILE__, __LINE__, __func__); \ pa_context_set_error((context), (error)); \ return value; \ } \