2018-04-04 10:53 GMT+02:00 Mattia Milani <mattia.mil...@studenti.unitn.it>:

> Don't worry, no problem for misleading.
>
> 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?
> if it's not possible i've partially solved converting the double in a
> string and printing it.
> it works even if it's
>

it's a bit brutal.

sorry, i sended the previus mail wrongly.

thanks for the help,
Mattia


>
> 2018-04-04 10:44 GMT+02:00 Jan Maria Matejka <jan.mate...@nic.cz>:
>
>> Yes, there is a branch named 'show-route'. Quite old. Updated now to
>> current int-new,
>> it builds but may be highly unstable.
>>
>> Sorry for misleading hints.
>> M.
>>
>> On 04/03/2018 05:54 PM, Mattia Milani wrote:
>> > I didn't find any branch with "flowspec" in the name :( did you find
>> something?
>> >
>> > Mattia
>> >
>> > Il lun 2 apr 2018, 20:23 Mattia Milani <mattia.mil...@studenti.unitn.it
>> <mailto:mattia.mil...@studenti.unitn.it>> ha scritto:
>> >
>> >     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.
>> >     Thanks,
>> >     Mattia
>> >
>> >     Il lun 2 apr 2018, 20:03 Jan Maria Matějka <jan.mate...@nic.cz
>> <mailto:jan.mate...@nic.cz>> ha scritto:
>> >
>> >         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.
>> >
>> >         Maria
>> >
>> >         Quidquid latine dictum sit, altum videtur.
>> >
>> >         -----Original Message-----
>> >         From: Mattia Milani <mattia.mil...@studenti.unitn.it <mailto:
>> mattia.mil...@studenti.unitn.it>>
>> >         To: BIRD Users <bird-users@network.cz <mailto:
>> bird-users@network.cz>>
>> >         Sent: Fri, 30 Mar 2018 6:32 PM
>> >         Subject: Can't Log information about a double
>> >
>> >         Hello all,
>> >
>> >         I'm trying to log some information during the bird process
>> execution.
>> >         I'm doing it in the bgp section.
>> >
>> >         I used the command:
>> >
>> >         log(L_INFO "** some text **");
>> >
>> >         with success, i added to the log some information about an
>> integer variable
>> >         with success, here it is the code:
>> >
>> >         int a = 5;
>> >         log(L_INFO "** some text ** %d", a);
>> >
>> >         Now i'm trying to make the same with a double variable but
>> without success
>> >
>> >         double a = 5.5;
>> >         log(L_INFO "** some text ** %lf", a);
>> >
>> >         the output was:
>> >
>> >         2018-03-30 18:09:12.270 <INFO> ** some text ** %f
>> >
>> >         I had already tried with %f instead of %lf but nothing changed
>> in the output
>> >
>> >         How can i log some double value? i need to use another function
>> instead of
>> >         log()?
>> >
>> >         Thanks,
>> >         Mattia
>> >
>>
>>
>

Reply via email to