Hi all, I am getting an error at following line in my script:- printa("%-60s %@10d %@10d\n", @funct_count, @funct_time); where, @funct_count[self->func_name] = count(); @funct_time[self->func_name]=sum(timestamp-self->ts[self->func_name,this->fdepth]); error:- printa( ) prototype mismatch: 3 args passed, 2 expected please help me out. Thanks, Ajit. -- This message posted from opensolaris.org
Enda O''Connor ( Sun Micro Systems Ireland)
2007-Sep-27 10:24 UTC
[dtrace-discuss] problem with printa()
Ajit Bansode wrote:> Hi all, > I am getting an error at following line in my script:- > > printa("%-60s %@10d %@10d\n", @funct_count, @funct_time); > > where, > @funct_count[self->func_name] = count(); > @funct_time[self->func_name]=sum(timestamp-self->ts[self->func_name,this->fdepth]); > > error:- > printa( ) prototype mismatch: 3 args passed, 2 expected > > please help me out.Hi you have three variables expected %-60s %@10d %@10d, but only have two are passed in @funct_count & @funct_time. Looks liek you need to drop the first one, %-60s. Enda> > Thanks, > Ajit. > > > -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
Hi, Thanks for your reply. Actually I thought the same. So I made changes accordingly but still it gives same error. Thanks, Ajit. -- This message posted from opensolaris.org
Hi Ajit, What version of Solaris are you using? Multiple aggregation printa() support arrived in Solaris 10 08/07 / Nevada build 30. It looks like you are running something earlier than that. Jon.>Hi all, >I am getting an error at following line in my script:- > >printa("%-60s %@10d %@10d\n", @funct_count, @funct_time); > >where, >@funct_count[self->func_name] = count(); >@funct_time[self->func_name]=sum(timestamp-self->ts[self->func_name,this->fdepth]); > >error:- >printa( ) prototype mismatch: 3 args passed, 2 expected > >please help me out. > >Thanks, >Ajit. > > >-- >This message posted from opensolaris.org >_______________________________________________ >dtrace-discuss mailing list >dtrace-discuss at opensolaris.org > >
Hi Jon, Thanks for the reply. This is what i got with uname -a :- SunOS psol1007 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V240 Do i need to upgrade my system for this? Thanks, Ajit -- This message posted from opensolaris.org
> > This is what i got with uname -a :- > SunOS psol1007 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V240 > > Do i need to upgrade my system for this?By the look of it you need to install the latest KU patch and all its requisites; this is 120011-14. Of course, you could also upgrade your system to the Solaris 10 08/07 release to get this functionality. Jon.