ia64/xen-unstable

changeset 4836:a22acf8b8127

bitkeeper revision 1.1389.9.5 (4280ce45ySNP-9TH6XPIhkIZcGy1LA)

Fix bugs in hyperprivop counting
author djm@kirby.fc.hp.com
date Tue May 10 15:07:49 2005 +0000 (2005-05-10)
parents 1bc0400523f0
children 4bc6f1b1425e
files xen/arch/ia64/privop.c
line diff
     1.1 --- a/xen/arch/ia64/privop.c	Mon May 09 23:30:20 2005 +0000
     1.2 +++ b/xen/arch/ia64/privop.c	Tue May 10 15:07:49 2005 +0000
     1.3 @@ -1004,8 +1004,9 @@ int dump_hyperprivop_counts(char *buf)
     1.4  	s += sprintf(s,"Hyperprivops:\n");
     1.5  	for (i = 1; i <= HYPERPRIVOP_MAX; i++)
     1.6  		if (hyperpriv_cnt[i])
     1.7 -			s += sprintf("%10d %s\n",
     1.8 +			s += sprintf(s,"%10d %s\n",
     1.9  				hyperpriv_cnt[i], hyperpriv_str[i]);
    1.10 +	return s - buf;
    1.11  }
    1.12  
    1.13  void zero_hyperprivop_counts(void)