From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEBC4C433DB for ; Fri, 29 Jan 2021 17:05:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F60E64D9A for ; Fri, 29 Jan 2021 17:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbhA2REo (ORCPT ); Fri, 29 Jan 2021 12:04:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:49950 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbhA2REj (ORCPT ); Fri, 29 Jan 2021 12:04:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611939833; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZwNzYu/zko+kb3h/QEPEZx7QjoRNdXWjweCGRiKhaes=; b=gUhKd/TmPj9pjGg1KR19zVIHjf6MwhT32qF4ehmJRoZOR73TjtPZvZfeh5idEZsWFMfB20 0jiCxHFd+Hcmt+0x7fObK2jzcR71PuIgD4ovgqQ0Q4+cTgGIloe2VD/BB1Y0cS2q5CQcVk hjr8/RXdlFgtfvuywJQEkFlfYh7rNVg= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 93708ACF5; Fri, 29 Jan 2021 17:03:53 +0000 (UTC) From: Richard Palethorpe To: ltp@lists.linux.it Cc: linux-can@vger.kernel.org, Oliver Hartkopp , Richard Palethorpe , Cyril Hrubis , Petr Vorel Subject: [PATCH v4 1/7] API: Add FILE_SCANF to new lib Date: Fri, 29 Jan 2021 17:02:59 +0000 Message-Id: <20210129170305.27383-2-rpalethorpe@suse.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210129170305.27383-1-rpalethorpe@suse.com> References: <20210129170305.27383-1-rpalethorpe@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org Signed-off-by: Richard Palethorpe Reviewed-by: Cyril Hrubis Reviewed-by: Petr Vorel --- include/tst_safe_file_ops.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/tst_safe_file_ops.h b/include/tst_safe_file_ops.h index 894c16123..ea8f89263 100644 --- a/include/tst_safe_file_ops.h +++ b/include/tst_safe_file_ops.h @@ -7,6 +7,9 @@ #include "safe_file_ops_fn.h" +#define FILE_SCANF(path, fmt, ...) \ + file_scanf(__FILE__, __LINE__, (path), (fmt), ## __VA_ARGS__) + #define SAFE_FILE_SCANF(path, fmt, ...) \ safe_file_scanf(__FILE__, __LINE__, NULL, \ (path), (fmt), ## __VA_ARGS__) -- 2.30.0