From a190d50a1f8ba68ae7fecd6c66b8c179ce320504 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 30 Apr 2020 14:35:05 -0700 Subject: [PATCH] a2dp: Simplify error messages Printing things like Error string shall not be necessary since it is already logging as error type. --- profiles/audio/a2dp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index a5590b24c..c31aaf187 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -735,7 +735,7 @@ static void endpoint_open_cb(struct a2dp_setup *setup, gboolean ret) if (err == 0) goto done; - error("Error on avdtp_open %s (%d)", strerror(-err), -err); + error("avdtp_open %s (%d)", strerror(-err), -err); setup->stream = NULL; finalize_setup_errno(setup, err, finalize_config, NULL); done: @@ -813,7 +813,7 @@ static void setconf_cfm(struct avdtp *session, struct avdtp_local_sep *sep, ret = avdtp_open(session, stream); if (ret < 0) { - error("Error on avdtp_open %s (%d)", strerror(-ret), -ret); + error("avdtp_open %s (%d)", strerror(-ret), -ret); setup->stream = NULL; finalize_setup_errno(setup, ret, finalize_config, NULL); } @@ -1133,8 +1133,7 @@ static void suspend_cfm(struct avdtp *session, struct avdtp_local_sep *sep, start_err = avdtp_start(session, a2dp_sep->stream); if (start_err < 0 && start_err != -EINPROGRESS) { - error("avdtp_start: %s (%d)", strerror(-start_err), - -start_err); + error("avdtp_start: %s (%d)", strerror(-start_err), -start_err); finalize_setup_errno(setup, start_err, finalize_suspend, NULL); } } -- 2.47.3