Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pJ519-0006HQ-5n for mharc-grub-devel@gnu.org; Fri, 20 Jan 2023 22:58:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJ517-0006HI-HU for grub-devel@gnu.org; Fri, 20 Jan 2023 22:58:09 -0500 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJ514-00070A-U8 for grub-devel@gnu.org; Fri, 20 Jan 2023 22:58:08 -0500 Received: by mail-qv1-xf2d.google.com with SMTP id t7so5174406qvv.3 for ; Fri, 20 Jan 2023 19:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0D3CuZE5BSFKNo0pPLW7Ctw/WK9/qlbYKOMYXhEqQEo=; b=uA+OhdUON/IFjTn9viqyayRQM9i7uGY/HLwYr4Vs3AFRUF8flg9pjMoUZWNskooJoO as4Hde/Y+WxDCUN//k5HKiHFuUadBEgK5gkjAOn49yHzKnw88rF6arQlD+GOoS2Mdulq el4W6keyUE/Y3EfuFAWjuEUFXjzH11x4uyYD/b5YTo4FYzWBbb2ixnvl9bKtkJiXBzdE T9T1FPYoQb6O+/T0CheQfHKFsDZQPobaKfnryY6qxDYcOJ54/saB5rFxgzYRt5WdfKUb IPYKA4yHvG1qjUWDoXqXE9550G1DecT/hlqTCXaKU6qEDDxR/FZNBFmkZFHuLrdW9Ekr v/MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0D3CuZE5BSFKNo0pPLW7Ctw/WK9/qlbYKOMYXhEqQEo=; b=C/nheaXWC+aTiovKbM4x2II7RgJxBg6XJSSVXwkQ52k5gzDKzLhElhD8wEGnwMP9VF 1S7NPVnn87VpE72yalR6WaDvnx3GSfXCzxWfqAs/SwJMJ46VAYGp4WebgHCaMmTGx4Z0 z9UkGVOupghsb3aw/MqJroBIYvD2iGAIf6Pu77o1kRsPMcpwl+WyXHCwXsKsHJl7fYuU tkgxbM9/iCP57Cbng7s4KmPipWfXr6SasPGo7uJZVdE+vaEVhF4VvJtMinW4ZiL49uq8 8bdQU1RcktRWwMeWJj8d7bukjLUBNora9FAqyhmx2x/u+wW7NoLxE9wA6k7+yjVkSg2A XWog== X-Gm-Message-State: AFqh2krFO6Ozjgoe++INV2CTSLpo6WigNcSstUCBBZxCWRN4Lbj2bZCs aAia+GVafVq1vnWqO0YVaqaPso5kh0aozNs3 X-Google-Smtp-Source: AMrXdXsYdpQBUUoSbwdckSBRw1sKOvOrbgKliR6LWz0ifaVmPz8luvas3yk5865Lv/zImhAi/hOOqA== X-Received: by 2002:a05:6214:3202:b0:4d7:45fb:f5ac with SMTP id ms2-20020a056214320200b004d745fbf5acmr24990318qvb.23.1674273484853; Fri, 20 Jan 2023 19:58:04 -0800 (PST) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id az20-20020a05620a171400b007091068cff1sm2742404qkb.28.2023.01.20.19.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 19:58:03 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH] misc: Move *printf function declarations to same location Date: Fri, 20 Jan 2023 21:57:33 -0600 Message-Id: <20230121035733.1612826-1-development@efficientek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=development@efficientek.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2023 03:58:09 -0000 Signed-off-by: Glenn Washburn --- include/grub/misc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/grub/misc.h b/include/grub/misc.h index ddac3aae8b..6c9d56de92 100644 --- a/include/grub/misc.h +++ b/include/grub/misc.h @@ -335,8 +335,6 @@ char *EXPORT_FUNC(grub_strdup) (const char *s) WARN_UNUSED_RESULT; char *EXPORT_FUNC(grub_strndup) (const char *s, grub_size_t n) WARN_UNUSED_RESULT; void *EXPORT_FUNC(grub_memset) (void *s, int c, grub_size_t n); grub_size_t EXPORT_FUNC(grub_strlen) (const char *s) WARN_UNUSED_RESULT; -int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 1, 2))); -int EXPORT_FUNC(grub_printf_) (const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 1, 2))); /* Replace all `ch' characters of `input' with `with' and copy the result into `output'; return EOS address of `output'. */ @@ -376,6 +374,8 @@ void EXPORT_FUNC(grub_real_dprintf) (const char *file, const int line, const char *condition, const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 4, 5))); +int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 1, 2))); +int EXPORT_FUNC(grub_printf_) (const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 1, 2))); int EXPORT_FUNC(grub_vprintf) (const char *fmt, va_list args); int EXPORT_FUNC(grub_snprintf) (char *str, grub_size_t n, const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 3, 4))); @@ -384,6 +384,7 @@ int EXPORT_FUNC(grub_vsnprintf) (char *str, grub_size_t n, const char *fmt, char *EXPORT_FUNC(grub_xasprintf) (const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 1, 2))) WARN_UNUSED_RESULT; char *EXPORT_FUNC(grub_xvasprintf) (const char *fmt, va_list args) WARN_UNUSED_RESULT; + void EXPORT_FUNC(grub_exit) (void) __attribute__ ((noreturn)); void EXPORT_FUNC(grub_abort) (void) __attribute__ ((noreturn)); grub_uint64_t EXPORT_FUNC(grub_divmod64) (grub_uint64_t n, -- 2.34.1