Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/divergefs/debug.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



#define NOISE debug_noise
#define INFO debug_info
#define WARNING debug_warning
#define ERROR debug_error
#define FATAL debug_fatal

/** initialize debug */
void debug_init(void);

/** sets the level of debugging messages desired */
void debug_set_level(uint level);

/** print messages that are only for debugging purpose */
void debug_noise(bool flag, char *format, ...);

/** print information such as status was set, or mode changed */
void debug_info(bool flag, char *format, ...);

/** 
 * print warnings that are does not affect the normal operation of the program
 * that user should take notice.
 */
void debug_warning(bool flag, char *format, ...);

/**
 * print error that program encounter and program might exit because of the 
 * error.
 */
void debug_error(bool flag, char *format, ...);

/** print fatal error that program must exit now */
void debug_fatal(bool flag, char *format, ...);

/** print stuff that must be printed such as usage */
void debug_print(char *level, char *format, ...);



Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.