11/*
2- * Copyright (c) 2003, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2003, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
6161 * NOTE: This function is at the lowest level of the call tree.
6262 * Do not use the ERROR* macros here.
6363 */
64+
65+ ATTRIBUTE_PRINTF(4, 0)
6466static void
6567vprint_message(FILE *fp, const char *prefix, const char *suffix,
6668 const char *format, va_list ap)
@@ -84,6 +86,7 @@ vprint_message(FILE *fp, const char *prefix, const char *suffix,
8486 * NOTE: This function is at the lowest level of the call tree.
8587 * Do not use the ERROR* macros here.
8688 */
89+ ATTRIBUTE_PRINTF(4, 5)
8790void
8891print_message(FILE *fp, const char *prefix, const char *suffix,
8992 const char *format, ...)
@@ -96,6 +99,7 @@ print_message(FILE *fp, const char *prefix, const char *suffix,
9699}
97100
98101/* Generate error message */
102+ ATTRIBUTE_PRINTF(1, 2)
99103void
100104error_message(const char *format, ...)
101105{
@@ -110,6 +114,7 @@ error_message(const char *format, ...)
110114}
111115
112116/* Print plain message to stdout. */
117+ ATTRIBUTE_PRINTF(1, 2)
113118void
114119tty_message(const char *format, ...)
115120{
0 commit comments