<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-04-04 10:53 GMT+02:00 Mattia Milani <span dir="ltr"><<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank">mattia.milani@studenti.unitn.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Don't worry, no problem for misleading.<br><br></div>since i'm working on a modification of bgp from the version 2.0.1 and i would not import unstable code could you tell me the only part to merge with my branch to have the printing of double/float?<br></div>if it's not possible i've partially solved converting the double in a string and printing it.<br></div>it works even if it's <br></div></blockquote><div><br></div><div>it's a bit brutal.<br><br></div><div>sorry, i sended the previus mail wrongly.<br><br></div><div>thanks for the help,<br></div><div>Mattia<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-04 10:44 GMT+02:00 Jan Maria Matejka <span dir="ltr"><<a href="mailto:jan.matejka@nic.cz" target="_blank">jan.matejka@nic.cz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, there is a branch named 'show-route'. Quite old. Updated now to current int-new,<br>
it builds but may be highly unstable.<br>
<br>
Sorry for misleading hints.<br>
<span class="m_1505150799166226612HOEnZb"><font color="#888888">M.<br>
</font></span><span class="m_1505150799166226612im m_1505150799166226612HOEnZb"><br>
On 04/03/2018 05:54 PM, Mattia Milani wrote:<br>
> I didn't find any branch with "flowspec" in the name :( did you find something? <br>
><br>
> Mattia<br>
><br>
</span><span class="m_1505150799166226612im m_1505150799166226612HOEnZb">> Il lun 2 apr 2018, 20:23 Mattia Milani <<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank">mattia.milani@studenti.unitn.<wbr>it</a> <mailto:<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank">mattia.milani@studenti<wbr>.unitn.it</a>>> ha scritto:<br>
><br>
> 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. <br>
> Thanks, <br>
> Mattia<br>
><br>
</span><span class="m_1505150799166226612im m_1505150799166226612HOEnZb">> Il lun 2 apr 2018, 20:03 Jan Maria Matějka <<a href="mailto:jan.matejka@nic.cz" target="_blank">jan.matejka@nic.cz</a> <mailto:<a href="mailto:jan.matejka@nic.cz" target="_blank">jan.matejka@nic.cz</a>>> ha scritto:<br>
><br>
> 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>
</span><div class="m_1505150799166226612HOEnZb"><div class="m_1505150799166226612h5">> From: Mattia Milani <<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank">mattia.milani@studenti.unitn.<wbr>it</a> <mailto:<a href="mailto:mattia.milani@studenti.unitn.it" target="_blank">mattia.milani@studenti<wbr>.unitn.it</a>>><br>
> To: BIRD Users <<a href="mailto:bird-users@network.cz" target="_blank">bird-users@network.cz</a> <mailto:<a href="mailto:bird-users@network.cz" target="_blank">bird-users@network.cz</a>><wbr>><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>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>