|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: make libxl__[v]log const-correct
# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1323712121 0
# Node ID ee846408203cf4190bd090664194c714909494d6
# Parent f9c147cdb448291af66e032c67b057ce96b137ce
libxl: make libxl__[v]log const-correct
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
diff -r f9c147cdb448 -r ee846408203c tools/libxl/libxl_internal.c
--- a/tools/libxl/libxl_internal.c Mon Dec 12 17:48:41 2011 +0000
+++ b/tools/libxl/libxl_internal.c Mon Dec 12 17:48:41 2011 +0000
@@ -179,7 +179,7 @@
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__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 -r f9c147cdb448 -r ee846408203c tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h Mon Dec 12 17:48:41 2011 +0000
+++ b/tools/libxl/libxl_internal.h Mon Dec 12 17:48:41 2011 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |