From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127218 invoked by alias); 1 Nov 2016 00:44:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 127168 invoked by uid 89); 1 Nov 2016 00:44:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER autolearn=no version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Cc: fweimer@redhat.com Subject: [PATCH 0/2] Cleanup some calls to write with unused result Date: Tue, 01 Nov 2016 00:44:00 -0000 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110100-0028-0000-0000-00000160449A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110100-0029-0000-0000-000014569D7D Message-Id: <1477961028-12150-1-git-send-email-gftg@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-31_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611010010 X-SW-Source: 2016-11/txt/msg00002.txt.bz2 While working on https://sourceware.org/ml/libc-alpha/2016-10/msg00535.html, I became aware of write_message. This patch is a similar cleanup for other parts of the code. The first patch only replaces calls to write on stdout, whereas the second also adds a new function which writes to stderr, instead of stdout. Is this a good cleanup? Tested for powerpc64le. Gabriel F. T. Gomes (2): Use write_message instead of write Add write_message_to_stderr and use it instead of write nptl/tst-basic1.c | 15 ++++++++------- nptl/tst-cleanup1.c | 11 ++++++----- nptl/tst-cleanup3.c | 11 ++++++----- nptl/tst-key1.c | 11 ++++++----- nptl/tst-key2.c | 23 ++++++++++++----------- nptl/tst-key3.c | 31 ++++++++++++++++--------------- nptl/tst-kill3.c | 13 +++++++------ nptl/tst-kill6.c | 15 ++++++++------- nptl/tst-stdio1.c | 2 +- nptl/tst-stdio2.c | 11 ++++++----- nptl/tst-tls2.c | 15 ++++++++------- nptl/tst-tls3.c | 13 +++++++------ test-skeleton.c | 9 +++++++++ 13 files changed, 100 insertions(+), 80 deletions(-) -- 2.4.11