Just to clarify, the reason for introducing amflog is to filter out logs from 
the standby amfd. That makes the logic cleaner than to sprinkle to the code 
with if statements. I think amflog could be used in other places too.
/Hans

> -----Original Message-----
> From: Hans Feldt [mailto:[email protected]]

> +/**
> + * Logs to saflog if active
> + * @param priority
> + * @param format
> + */
> +void amflog(int priority, const char *format, ...)
> +{
> +     if (avd_cb->avail_state_avd == SA_AMF_HA_ACTIVE) {
> +             va_list ap;
> +             char str[256];
> +
> +             va_start(ap, format);
> +             vsnprintf(str, sizeof(str), format, ap);
> +             va_end(ap);
> +             saflog(priority, amfSvcUsrName, "%s", str);
> +     }
> +}
> 
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> Opensaf-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensaf-devel

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to