Link to home
Start Free TrialLog in
Avatar of Talmash
TalmashFlag for Israel

asked on

Invalid conversion in printf: "%m" at .. <SRC> chunk 13991.

hi ,

I receive this comment :

Invalid conversion in printf: "%m" at ../flops/scripts/Convert_Cells_Library.pm line 114, <SRC> chunk 13991.

for every line include '%' sign , in SRC file .

the script :

...
open (SRC,"$clnf");
foreach $line (<SRC>) {
...    
     printf DST "${line}";
...
}
close(SRC);
...


the lines at SRC that produce the warning :

(examples)
$display("%m > CDN is released at time %.2fns.", $realtime);
$display("%m > SDN is released at time %.2fns.", $realtime);

are copied back (while foreach loop) to :

$display("%m > CDN is released at time 0.00ns.", $realtime);
$display("%m > SDN is released at time 0.00ns.", $realtime);

the problem : %.2f was wrongly replaced with 0.00

how to solve this problem elegantly ?

Tal
ASKER CERTIFIED SOLUTION
Avatar of rustot
rustot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Talmash

ASKER

hi ,

durring the last 10 minutes , I tried solving it and I did
it the same way .

any way , enjoy A grade for the quick response .

hope to use you next time .
Avatar of Talmash

ASKER

hi ,

durring the last 10 minutes , I tried solving it and I did
it the same way .

any way , enjoy A grade for the quick response .

hope to use you next time .