Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbbGJLCJ (ORCPT ); Fri, 10 Jul 2015 07:02:09 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:34185 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbbGJLCA (ORCPT ); Fri, 10 Jul 2015 07:02:00 -0400 Date: Fri, 10 Jul 2015 14:01:18 +0300 From: Cristina Opriceana To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.baluta@intel.com, octavian.purdila@intel.com, julia.lawall@lip6.fr Subject: [PATCH v2 3/4] tools: iio: generic_buffer: Maintain fprintf() messages consistent Message-ID: <62a8cc18f7034b2190536c0cd2e49d5d42256790.1436524490.git.cristina.opriceana@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 29 Ensure that both of the error messages get to the same standard stream. Signed-off-by: Cristina Opriceana --- tools/iio/generic_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c index af350cc..ac9b954 100644 --- a/tools/iio/generic_buffer.c +++ b/tools/iio/generic_buffer.c @@ -325,7 +325,7 @@ int main(int argc, char **argv) ret = build_channel_array(dev_dir_name, &channels, &num_channels); if (ret) { fprintf(stderr, "Problem reading scan element information\n"); - printf("diag %s\n", dev_dir_name); + fprintf(stderr, "diag %s\n", dev_dir_name); goto error_free_triggername; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/