[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 10/13] libxl: make libxl__[v]log const-correct
On Mon, 2011-11-28 at 16:59 +0000, Ian Jackson wrote: > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> > --- > tools/libxl/libxl_internal.c | 4 ++-- > tools/libxl/libxl_internal.h | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/libxl/libxl_internal.c b/tools/libxl/libxl_internal.c > index d767ce3..ae28cb0 100644 > --- a/tools/libxl/libxl_internal.c > +++ b/tools/libxl/libxl_internal.c > @@ -179,7 +179,7 @@ char *libxl__dirname(libxl__gc *gc, const char *s) > > void libxl__logv(libxl_ctx *ctx, xentoollog_level msglevel, int errnoval, > const char *file, int line, const char *func, > - char *fmt, va_list ap) > + const char *fmt, va_list ap) > { > char *enomem = "[out of memory formatting log message]"; > char *base = NULL; > @@ -206,7 +206,7 @@ void libxl__logv(libxl_ctx *ctx, xentoollog_level > msglevel, int errnoval, > > void libxl__log(libxl_ctx *ctx, xentoollog_level msglevel, int errnoval, > const char *file, int line, const char *func, > - char *fmt, ...) > + const char *fmt, ...) > { > va_list ap; > va_start(ap, fmt); > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h > index 41de6fd..1d1dc35 100644 > --- a/tools/libxl/libxl_internal.h > +++ b/tools/libxl/libxl_internal.h > @@ -80,13 +80,13 @@ > _hidden void libxl__logv(libxl_ctx *ctx, xentoollog_level msglevel, int > errnoval, > const char *file /* may be 0 */, int line /* ignored if !file > */, > const char *func /* may be 0 */, > - char *fmt, va_list al) > + const char *fmt, va_list al) > __attribute__((format(printf,7,0))); > > _hidden void libxl__log(libxl_ctx *ctx, xentoollog_level msglevel, int > errnoval, > const char *file /* may be 0 */, int line /* ignored if !file */, > const char *func /* may be 0 */, > - char *fmt, ...) > + const char *fmt, ...) > __attribute__((format(printf,7,8))); > > /* these functions preserve errno (saving and restoring) */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |