diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/io.c | 4 | ||||
-rw-r--r-- | runtime/runtime.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 079b02ee..3b4b4014 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2006-11-02 Martin Hunt <hunt@redhat.com> + + * io.c (_stp_vlog, _stp_dbug): Make first parameter const. + * runtime.h: Update prototype for _stp_dbug. + 2006-10-27 Thang Nguyen <thang.p.nguyen@intel.com> * runtime/regs.c: patch from Bibo Mao for fixing the return diff --git a/runtime/io.c b/runtime/io.c index cee9acf1..5ef88957 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -32,7 +32,7 @@ static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1]; enum code { INFO=0, WARN, ERROR, DBUG }; -static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va_list args) +static void _stp_vlog (enum code type, const char *func, int line, const char *fmt, va_list args) { int num; char *buf = &_stp_lbuf[get_cpu()][0]; @@ -150,7 +150,7 @@ void _stp_softerror (const char *fmt, ...) } -static void _stp_dbug (char *func, int line, const char *fmt, ...) +static void _stp_dbug (const char *func, int line, const char *fmt, ...) { va_list args; va_start(args, fmt); diff --git a/runtime/runtime.h b/runtime/runtime.h index df7f9f13..d0038903 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -43,7 +43,7 @@ * @param args A variable number of args in a format like printf. * @ingroup io */ -static void _stp_dbug (char *func, int line, const char *fmt, ...); +static void _stp_dbug (const char *func, int line, const char *fmt, ...); #define dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args) #define kbug(args...) {printk("%s:%d ",__FUNCTION__, __LINE__); printk(args); } #else |