On (09/10/08 20:20), Andy Whitcroft didst pronounce: > Where utilities are going to use routines out of the library directly it > is helpful to share the debugging routines whilst maintaining the identity > of the message producer. Allow the utilities to override the name shown. > > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> > Acked-by: Adam Litke <[EMAIL PROTECTED]>
Acked-by: Mel Gorman <[EMAIL PROTECTED]> > --- > libhugetlbfs_internal.h | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/libhugetlbfs_internal.h b/libhugetlbfs_internal.h > index 1170c43..197fa05 100644 > --- a/libhugetlbfs_internal.h > +++ b/libhugetlbfs_internal.h > @@ -53,11 +53,14 @@ extern char __hugetlbfs_hostname[]; > extern int __lh_hugetlbfs_prefault(int fd, void *addr, size_t length); > extern long __lh_parse_page_size(const char *str); > > +#ifndef REPORT_UTIL > +#define REPORT_UTIL "libhugetlbfs" > +#endif > #ifndef REPORT > #define REPORT(level, prefix, format, ...) \ > do { \ > if (__hugetlbfs_debug || __hugetlbfs_verbose >= level) { \ > - fprintf(stderr, "libhugetlbfs [%s:%d]: " prefix ": " \ > + fprintf(stderr, REPORT_UTIL " [%s:%d]: " prefix ": " \ > format, __hugetlbfs_hostname, getpid(), \ > ##__VA_ARGS__); \ > fflush(stderr); \ > -- > 1.6.0.1.451.gc8d31 > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel