Return-Path: From: Szymon Janc To: Andrei Emeltchenko Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH 10/17] android/hal-sco: Fix error code printing Date: Tue, 17 Jun 2014 23:49:14 +0200 Message-ID: <1733778.CPBJFeIyqH@athlon> In-Reply-To: <1402905472-17643-10-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1402905472-17643-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1402905472-17643-10-git-send-email-Andrei.Emeltchenko.news@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Andrei, On Monday 16 June 2014 10:57:45 Andrei Emeltchenko wrote: > From: Andrei Emeltchenko > > --- > android/hal-sco.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/android/hal-sco.c b/android/hal-sco.c > index ef04dc5..faed406 100644 > --- a/android/hal-sco.c > +++ b/android/hal-sco.c > @@ -712,7 +712,7 @@ static int sco_open_output_stream(struct audio_hw_device > *dev, RESAMPLER_QUALITY_DEFAULT, NULL, > &out->resampler); > if (ret) { > - error("Failed to create resampler (%s)", strerror(ret)); > + error("Failed to create resampler (%s)", strerror(-ret)); > goto failed; > } > > @@ -1143,7 +1143,7 @@ static int sco_open_input_stream(struct > audio_hw_device *dev, RESAMPLER_QUALITY_DEFAULT, NULL, > &in->resampler); > if (ret) { > - error("Failed to create resampler (%s)", strerror(ret)); > + error("Failed to create resampler (%s)", strerror(-ret)); > goto failed; > } That one doesn't apply. Please rebase, thanks. -- Szymon K. Janc szymon.janc@gmail.com