[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: T.syslog_L 115



On Wed, Mar 13, Matt Wilson wrote:

> On Wed, Mar 13, 2002 at 07:15:50AM +0100, Thorsten Kukuk wrote:
> > > What glibc are you using?
> > 
> > current 2.2 branch with pending patches.
> 
> Could you post any fixes that have not been accepted into CVS?

I append the second nice patch and one for a format string bug.
I think that's all, the last one should fix  most syslog problems.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrenstr. 15-19       D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B
2002-03-02  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/unix/nice.c: Use getpriority() for the return value

--- sysdeps/unix/nice.c
+++ sysdeps/unix/nice.c	2002/03/02 09:40:14
@@ -43,7 +43,7 @@
 
   result = setpriority (PRIO_PROCESS, 0, prio + incr);
   if (result != -1)
-    return prio + incr;
+    return getpriority (PRIO_PROCESS, 0);
   else
     return -1;
 
2002-03-02  Andreas Schwab  <schwab@suse.de>

	* stdio-common/vfprintf.c (process_arg): Fix decimal format with
	'h' flag and positional arg.

--- stdio-common/vfprintf.c	Tue Feb 26 10:48:46 2002
+++ stdio-common/vfprintf.c	Sat Mar  2 18:08:09 2002
@@ -580,8 +580,10 @@
 	  else								      \
 	    if (is_long_num)						      \
 	      signed_number = args_value[fspec->data_arg].pa_long_int;	      \
-	    else							      \
+	    else if (!is_short)						      \
 	      signed_number = args_value[fspec->data_arg].pa_int;	      \
+	    else	      						      \
+	      signed_number = args_value[fspec->data_arg].pa_short_int;	      \
 									      \
 	  is_negative = signed_number < 0;				      \
 	  number.word = is_negative ? (- signed_number) : signed_number;      \


Reply to: