Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1396232pxk; Thu, 10 Sep 2020 14:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/IxsGfzzMcVPnaDazDOms2pe/QkGazy+QAnKbcP6jgpnMFc9MYi3VuhpOvysiaDWjTVve X-Received: by 2002:a17:906:a251:: with SMTP id bi17mr10705023ejb.526.1599772894193; Thu, 10 Sep 2020 14:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599772894; cv=none; d=google.com; s=arc-20160816; b=H1hHC6dpqaFgJgsQN8GzoupXnIKTEVcngGyoM4uYlyhBwYtm8cdvF/ABBJh5LPuxba zydNhYZMa06k1T9PgoEhhrGTk/bk732RZvpe0VJ9qes1gFAFDjvi5ka4DCJ4AiWvcS/6 yblHDmRI64Wn6yn7/uUdX3wesqS1/DdGkwymjnFLhM4j844ir8hACavloHa8OlZ7aV7/ DAROgHnV0Uci+vJYh0QHHdZZ/g9vQT/xHf/Y2XAypRE4rpKPSsEgSFj4IZW2KTNHe2dh o7Gv41EJpE58t2wXveyOvYnTRHFiqrPWNZVKj+qe/6oZ7ZmFKHUvTPPCstxtHEd1gfK7 1loA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NEcMV7mwVCcBwDSicVrtyHLbk/vsYwT0ZunUd30Uoo8=; b=FD+0O98fJWx+KL5FvPMTnDHTHmJQZWHKKMG9vsZrK+Y3VfFetYriVhrnf3OWPuKAHQ hiPDylXgGNuYC8u1BWpFRo/KhetI1Al1L686g91gQl2rjkdVJ+3v4VvEpVvMyjfKkSKk l29r8UqlhO+mrbzqB7a4iaQXRKsHbZBXSg0rr+tzUH/ERit3glWVlvRpAsJofOE+SPh4 lChA9SFMuFFCZywaC9Pb88iGIX3Yg57Zr+E0h3PRi7E4jLZegVGrPV/C0222Y2b4pfje as5agixQhCJkCVLrOVW7qFUAq1I6F7rR7i2KvAWn2Dpi+Sq6jjEmbOplz+uNx4RaysOq 7dkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rPIy73KW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si4245799edo.347.2020.09.10.14.21.11; Thu, 10 Sep 2020 14:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rPIy73KW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgIJVRa (ORCPT + 99 others); Thu, 10 Sep 2020 17:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728066AbgIJVPI (ORCPT ); Thu, 10 Sep 2020 17:15:08 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289FAC0617AA; Thu, 10 Sep 2020 14:14:34 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id z9so2109678wmk.1; Thu, 10 Sep 2020 14:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NEcMV7mwVCcBwDSicVrtyHLbk/vsYwT0ZunUd30Uoo8=; b=rPIy73KWkAhX2hCOZ0I2FLsmAtunpa9hbQEtQnuo9kHWRAjhPYPO9hgVQtJ6cS3OPY XKSX7rMiBHIXLxiaVDH+W3E2njbzekc6qmVibnGzEuv1XrOpxR0deWkXE51wMlelEm3D Rl5+mJq2haAI8jAh9m5XOR9/H255CT2YXKXo2eikrQck0STffjzKXUWoj6ZxnlA3PPqO /N5kLN1y3dj1NPKpF2IXyT6yLj0K5nqYei9Z+Idznay2IlyL3zoKCrzcqd1AOZ2VTGFz hlROGgD6hyHZBrREJFrQYruNJISiVCiOSpsJfVa6+neDishFD6hvFNc4hob7+mfB4E7b c3TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NEcMV7mwVCcBwDSicVrtyHLbk/vsYwT0ZunUd30Uoo8=; b=YMe0Cg9m+Y4q02V9SSmGhrbZa6osO2OR5QXjfjJGdO9/cR0G1NvlglnCz/X5KqWC4G UAxqNj0WbKtrZ8nOVRt2ZuMBwO079+KqqSsyB7aQYbnjIsrBcCXAKt6pJvLPQmHJAfja ZWYZ3zDUAERgp8KcuusW3a4G4DUoFqDFlOE0PMNYxuGHbQ6LOiK6fvVqWXI6NPJcJEeU ORCzANQoVV7WdoF2MUtwm28yiIKIAdQNUNghPUxxk03Lv8kYHGA3VGEhRFPFrChMZSwh ek45UPxGbBX9dgJbEkNoJog50iL+Qh3/Hy9AoOgsgO4iBQYUtzgi1Lf1hmtp5QKdnFYV aIhw== X-Gm-Message-State: AOAM533L4RDtkEUtXLQfoMbV0R/mecMZ0KT0iye+tNC4vBbn+QAuXWf0 n64a2jOFC8gL342nxuQu3pg= X-Received: by 2002:a1c:dfc2:: with SMTP id w185mr697784wmg.15.1599772472828; Thu, 10 Sep 2020 14:14:32 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id l10sm111502wru.59.2020.09.10.14.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 14:14:32 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, Alejandro Colomar Subject: [PATCH 21/24] aio.7: Use perror() directly Date: Thu, 10 Sep 2020 23:13:42 +0200 Message-Id: <20200910211344.3562-22-colomar.6.4.3@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910211344.3562-1-colomar.6.4.3@gmail.com> References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alejandro Colomar --- man7/aio.7 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/man7/aio.7 b/man7/aio.7 index ff099885e..9b2c44c48 100644 --- a/man7/aio.7 +++ b/man7/aio.7 @@ -257,8 +257,6 @@ aio_return(): #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0) -#define errMsg(msg) do { perror(msg); } while (0) - struct ioRequest { /* Application\-defined structure for tracking I/O requests */ int reqNum; @@ -390,7 +388,7 @@ main(int argc, char *argv[]) else if (s == AIO_ALLDONE) printf("I/O all done\en"); else - errMsg("aio_cancel"); + perror("aio_cancel"); } } @@ -418,7 +416,7 @@ main(int argc, char *argv[]) printf("Canceled\en"); break; default: - errMsg("aio_error"); + perror("aio_error"); break; } -- 2.28.0