[asterisk-bugs] [Asterisk 0009232]: vprintk availability in kernels < 2.6.9
noreply at bugs.digium.com
noreply at bugs.digium.com
Sat Jun 7 12:44:27 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=9232
======================================================================
Reported By: baconbuttie
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 9232
Category: Core/General
Reproducibility: always
Severity: trivial
Priority: normal
Status: closed
Asterisk Version: I did not set the version :(
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: No
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 03-08-2007 01:52 CST
Last Modified: 06-07-2008 12:44 CDT
======================================================================
Summary: vprintk availability in kernels < 2.6.9
Description:
in <zaptel-source/hpec/hpec_zaptel.h at line 36 :
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
va_start(args, format);
res = vprintk(format, args);
va_end(args);
#else
char buf[256];
va_start(args, format);
res = vsnprintf(buf, sizeof(buf), format, args);
va_end(args);
printk(buf);
#endif
this causes a compilation failure, and subsequent dmesg errors if zaptel
is modprobed on a 2.6.8-2 kernel. a quick google reveals that vprintk
support wasn't added until 2.6.9-rc1.
changing the line :
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
to
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,9)
allows compilation and successful modprobe. forum user kerberos reports
that his system is able to use HPEC now.
======================================================================
----------------------------------------------------------------------
svnbot - 06-07-08 12:44
----------------------------------------------------------------------
Repository: dahdi
Revision: 2297
_U branches/1.4/
U branches/1.4/hpec/hpec_zaptel.h
------------------------------------------------------------------------
r2297 | file | 2008-06-07 12:44:24 -0500 (Sat, 07 Jun 2008) | 10 lines
Merged revisions 2296 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2296 | file | 2007-03-08 10:56:05 -0500 (Thu, 08 Mar 2007) | 2 lines
vprintk is only available on 2.6.9+ (issue
http://bugs.digium.com/view.php?id=9232 reported by baconbuttie)
........
------------------------------------------------------------------------
http://svn.digium.com/view/dahdi?view=rev&revision=2297
Issue History
Date Modified Username Field Change
======================================================================
06-07-08 12:44 svnbot Checkin
06-07-08 12:44 svnbot Note Added: 0088261
======================================================================
More information about the asterisk-bugs
mailing list