From patchwork Thu May 16 12:20:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Crowe X-Patchwork-Id: 1100520 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-102015-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mcrowe.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="yjQcIosk"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 454VrL4XJfz9s9T for ; Thu, 16 May 2019 22:20:50 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=wHq6j7uoVNzzReuz1snwQ+Li0ed3JoWQZmE0cZfWMtRxd0zrwyabE 1e7FT0cBDXHwNnSHp7xE4lDxHOtGrNGI1CLMfYG1Y439IIbFqdBGGg8ymhAlxzGW N3xTXBkDw+XhJ/g4pOBIEVYAux5otWkyD6WT3xdSdUNtR8wwMpTC1k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=ksU111UW0QzJttBjmnAreJA5xu0=; b=yjQcIoskJt/mHTabqI5JljNlQ3yD JpU9yELZ6wje8hpjyqqrYpIqaDOcNPZefZChxZDrV+5A7KyT/t+lQYgQYZW+8deW 3NfJLyppROzw3ldi7vG+m5/FqjPly6OkQ0VMtVF3xdk+4cobiwWpLVPuJpCeri33 rKrjE+jC+j8IFg4= Received: (qmail 14286 invoked by alias); 16 May 2019 12:20:37 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 14217 invoked by uid 89); 16 May 2019 12:20:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=H*r:smtp, H*r:4.89, Mike, HContent-Transfer-Encoding:8bit X-HELO: avasout02.plus.net X-CM-Score: 0.00 From: Mike Crowe To: libc-alpha@sourceware.org Cc: Mike Crowe Subject: [PATCH 2/2] timespec: Add missing EOL terminators Date: Thu, 16 May 2019 13:20:26 +0100 Message-Id: <20190516122026.14205-2-mac@mcrowe.com> In-Reply-To: <20190516122026.14205-1-mac@mcrowe.com> References: <20190516122026.14205-1-mac@mcrowe.com> MIME-Version: 1.0 The original implementations of test_timespec_before_impl and test_timespec_equal_or_after in 519839965197291924895a3988804e325035beee were missing the backslash required for a newline. * support/timespec.c: Add backslash to correct newline in failure message. --- ChangeLog | 5 +++++ support/timespec.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f870deca1a..33925ec898 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-05-16 Mike Crowe + + * support/timespec.c: Add backslash to correct newline in failure + message. + 2019-05-16 Mike Crowe * support/timespec.h: Correct confusing comment. diff --git a/support/timespec.c b/support/timespec.c index 653293970a..7c1a4e5389 100644 --- a/support/timespec.c +++ b/support/timespec.c @@ -31,7 +31,7 @@ test_timespec_before_impl (const char *file, int line, support_record_failure (); const struct timespec diff = timespec_sub (left, right); printf ("%s:%d: %jd.%09jds not before %jd.%09jds " - "(difference %jd.%09jds)n", + "(difference %jd.%09jds)\n", file, line, (intmax_t) left.tv_sec, (intmax_t) left.tv_nsec, (intmax_t) right.tv_sec, (intmax_t) right.tv_nsec, @@ -50,7 +50,7 @@ test_timespec_equal_or_after_impl (const char *file, int line, support_record_failure (); const struct timespec diff = timespec_sub (right, left); printf ("%s:%d: %jd.%09jds not after %jd.%09jds " - "(difference %jd.%09jds)n", + "(difference %jd.%09jds)\n", file, line, (intmax_t) left.tv_sec, (intmax_t) left.tv_nsec, (intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,