<div dir="auto"><div>I'll check me to tomorrow on git for sone branch with "flowspec" but if you can check tomorrow and give me some more feedback it will be beautiful. </div><div dir="auto">Thanks, </div><div dir="auto">Mattia<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">Il lun 2 apr 2018, 20:03 Jan Maria Matějka <<a href="mailto:jan.matejka@nic.cz">jan.matejka@nic.cz</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bird's internal sprintf doesn't support floats, at least for now, in 1.6.x probably forever. There may be some patch that adds it. Look for some branch with "flowspec", I think I was implementing something like this for printing BGP flowspec and it is probably not merged. I don't have the git here now, maybe I can find it tomorrow.<br>
<br>
Maria<br>
<br>
Quidquid latine dictum sit, altum videtur.<br>
<br>
-----Original Message-----<br>
From: Mattia Milani <<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank" rel="noreferrer">mattia.milani@studenti.unitn.it</a>><br>
To: BIRD Users <<a href="mailto:bird-users@network.cz" target="_blank" rel="noreferrer">bird-users@network.cz</a>><br>
Sent: Fri, 30 Mar 2018 6:32 PM<br>
Subject: Can't Log information about a double<br>
<br>
Hello all,<br>
<br>
I'm trying to log some information during the bird process execution.<br>
I'm doing it in the bgp section.<br>
<br>
I used the command:<br>
<br>
log(L_INFO "** some text **");<br>
<br>
with success, i added to the log some information about an integer variable<br>
with success, here it is the code:<br>
<br>
int a = 5;<br>
log(L_INFO "** some text ** %d", a);<br>
<br>
Now i'm trying to make the same with a double variable but without success<br>
<br>
double a = 5.5;<br>
log(L_INFO "** some text ** %lf", a);<br>
<br>
the output was:<br>
<br>
2018-03-30 18:09:12.270 <INFO> ** some text ** %f<br>
<br>
I had already tried with %f instead of %lf but nothing changed in the output<br>
<br>
How can i log some double value? i need to use another function instead of<br>
log()?<br>
<br>
Thanks,<br>
Mattia<br>
</blockquote></div></div></div>