Sir,
me,Krishnakumar and rejeeshnath worked on the following bug and it seems to
be fixed.
The output is as expected and fine. We would like u to check the same

*SCA Number:OS 0191
user id is : krishna.

Rejeesh's SCA Number:OS 0186
user id:rej*
*BUG ID : 6425059*

*SYNOPSIS:*  Typographical error in ccompile.h breaks builds using GNU C

CATEGORY & SUBCATEGORY: kernel:header

DESCRIPTION:A simple typographical error in
usr/src/uts/common/sys/ccompile.h
breaks kernel builds using the GNU C compiler (gcc).
The attribute 'cmn_err' is specified, where it was obviously
intended to be 'printf'.

Suggested fix:

@@ -69,9 +69,9 @@
#define        __sun_attr___KVPRINTFLIKE__     __sun_attr___VPRINTFLIKE__
#else
#define        __sun_attr___KPRINTFLIKE__(__n) \
-               __attribute__((__format__(cmn_err, __n, (__n)+1)))
+               __attribute__((__format__(printf, __n, (__n)+1)))
#define        __sun_attr___KVPRINTFLIKE__(__n) \
-               __attribute__((__format__(cmn_err, __n, 0)))
+               __attribute__((__format__(printf, __n, 0)))
#endif
DIFF OUTPUT
*****************************************************************************************
bash-3.00# diff -u ccompile.h.orig ccompile.h
--- ccompile.h.orig     Wed Feb 13 23:42:45 2008
+++ ccompile.h  Wed Feb 13 23:50:54 2008
@@ -71,7 +71,7 @@
 #define        __sun_attr___KPRINTFLIKE__(__n) \
-               __attribute__((__format__(cmn_err, __n, (__n)+1)))
+               __attribute__((__format__(printf, __n, (__n)+1)))
 #define        __sun_attr___KVPRINTFLIKE__(__n) \
-               __attribute__((__format__(cmn_err, __n, 0)))
+               __attribute__((__format__(printf, __n, 0)))
 #endif
******************************************************************************************

Looking forward to hear from you

Thanking you sir
Krishnakumar D.
Rejeeshnath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080214/d95b5028/attachment.html>

Reply via email to