mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 07:13:08 +02:00
eeshow/diag.h: use __attribute__((format(printf, ...
This commit is contained in:
parent
7604c64d16
commit
bcd34eaf7d
@ -40,14 +40,16 @@ void diag_perror(const char *s);
|
|||||||
* E.g., out of memory.
|
* E.g., out of memory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void __attribute__((noreturn)) fatal(const char *fmt, ...);
|
void __attribute__((noreturn)) fatal(const char *fmt, ...)
|
||||||
|
__attribute__((format(printf, 1, 2)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Operation has failed, but the program as a whole may still be able to
|
* Operation has failed, but the program as a whole may still be able to
|
||||||
* continue. E.g., a schematics component was not found.
|
* continue. E.g., a schematics component was not found.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void error(const char *fmt, ...);
|
void error(const char *fmt, ...)
|
||||||
|
__attribute__((format(printf, 1, 2)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A minor operation has failed or some other issue was detected. This may
|
* A minor operation has failed or some other issue was detected. This may
|
||||||
@ -55,13 +57,15 @@ void error(const char *fmt, ...);
|
|||||||
* operation.
|
* operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void warning(const char *fmt, ...);
|
void warning(const char *fmt, ...)
|
||||||
|
__attribute__((format(printf, 1, 2)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Progress message, used mainly for debugging. "level" is the minimum
|
* Progress message, used mainly for debugging. "level" is the minimum
|
||||||
* verbosity level required.
|
* verbosity level required.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void progress(unsigned level, const char *fmt, ...);
|
void progress(unsigned level, const char *fmt, ...)
|
||||||
|
__attribute__((format(printf, 2, 3)));
|
||||||
|
|
||||||
#endif /* !DIAG_H */
|
#endif /* !DIAG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user