src/util.{c,h}: use report more often.
NEWS - what's up
This commit is contained in:
5
NEWS
5
NEWS
@@ -5,7 +5,7 @@
|
||||
- list-returning routines like iso9660_fs_readdir and
|
||||
iso9660_ifs_readdir no longer return void * (and require casting)
|
||||
but return the correct type.
|
||||
- Some exmaple programs have been renamed to more give meaningful
|
||||
- Some example programs have been renamed to more give meaningful
|
||||
names.
|
||||
- Add iso9660_ifs_is_xa() a routine to determine if an iso image has
|
||||
XA attributes.
|
||||
@@ -13,6 +13,7 @@
|
||||
- Some Joliet support.
|
||||
- Portability fixes for C++ and older C compilers.
|
||||
- Work towards XBOX support.
|
||||
- Some bug fixes
|
||||
|
||||
|
||||
0.70
|
||||
@@ -152,4 +153,4 @@
|
||||
0.1
|
||||
Routines split off from VCDImager.
|
||||
|
||||
$Id: NEWS,v 1.55 2004/10/31 13:58:44 rocky Exp $
|
||||
$Id: NEWS,v 1.56 2004/11/06 09:16:04 rocky Exp $
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: util.c,v 1.26 2004/11/06 03:17:31 rocky Exp $
|
||||
$Id: util.c,v 1.27 2004/11/06 09:16:04 rocky Exp $
|
||||
|
||||
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -478,8 +478,8 @@ print_drive_capabilities(cdio_drive_read_cap_t i_read_cap,
|
||||
}
|
||||
}
|
||||
|
||||
/* Common place for Output routine. Some environments like XBOX may not
|
||||
stdout and stderr. */
|
||||
/*! Common place for output routine. In some environments, like XBOX,
|
||||
it may not be desireable to send output to stdout and stderr. */
|
||||
void
|
||||
report (FILE *stream, const char *psz_format, ...)
|
||||
{
|
||||
|
||||
11
src/util.h
11
src/util.h
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: util.h,v 1.8 2004/11/04 10:08:23 rocky Exp $
|
||||
$Id: util.h,v 1.9 2004/11/06 09:16:04 rocky Exp $
|
||||
|
||||
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -74,13 +74,13 @@
|
||||
#if DEBUG
|
||||
#define dbg_print(level, s, args...) \
|
||||
if (opts.debug_level >= level) \
|
||||
fprintf(stderr, "%s: "s, __func__ , ##args)
|
||||
report(stderr, "%s: "s, __func__ , ##args)
|
||||
#else
|
||||
#define dbg_print(level, s, args...)
|
||||
#endif
|
||||
|
||||
#define err_exit(fmt, args...) \
|
||||
fprintf(stderr, "%s: "fmt, program_name, ##args); \
|
||||
report(stderr, "%s: "fmt, program_name, ##args); \
|
||||
myexit(p_cdio, EXIT_FAILURE)
|
||||
|
||||
typedef enum
|
||||
@@ -113,9 +113,8 @@ void print_drive_capabilities(cdio_drive_read_cap_t p_read_cap,
|
||||
cdio_drive_write_cap_t p_write_cap,
|
||||
cdio_drive_misc_cap_t p_misc_cap);
|
||||
|
||||
|
||||
/* Common place for Output routine. Some environments like XBOX may not
|
||||
stdout and stderr. */
|
||||
/*! Common place for output routine. In some environments, like XBOX,
|
||||
it may not be desireable to send output to stdout and stderr. */
|
||||
void report (FILE *stream, const char *psz_format, ...);
|
||||
|
||||
#endif /* UTIL_H */
|
||||
|
||||
Reference in New Issue
Block a user