troubleshooting Question

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

Avatar of Talmash
TalmashFlag for Israel asked on
3 Comments1 Solution886 ViewsLast Modified:
hi ,

I receive this comment :

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

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

the script :

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

the lines at SRC that produce the warning :

$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 ?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros