ia64/xen-unstable

changeset 18386:e827b524772c

mini-os: Add printf format checking to xenbus_printf

Reported-by: "Daniel P. Berrange" <berrange@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 27 09:48:39 2008 +0100 (2008-08-27)
parents 38557884d2cd
children c3f73c6f2266
files extras/mini-os/include/xenbus.h
line diff
     1.1 --- a/extras/mini-os/include/xenbus.h	Wed Aug 27 09:48:09 2008 +0100
     1.2 +++ b/extras/mini-os/include/xenbus.h	Wed Aug 27 09:48:39 2008 +0100
     1.3 @@ -88,7 +88,8 @@ int xenbus_read_integer(const char *path
     1.4  /* Contraction of snprintf and xenbus_write(path/node). */
     1.5  char* xenbus_printf(xenbus_transaction_t xbt,
     1.6                                    const char* node, const char* path,
     1.7 -                                  const char* fmt, ...);
     1.8 +                                  const char* fmt, ...)
     1.9 +                   __attribute__((__format__(printf, 4, 5)));
    1.10  
    1.11  /* Reset the XenBus system. */
    1.12  void fini_xenbus(void);