Skip to content

Commit

Permalink
carrierroute: adapt LM_GEN call to constant format
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Oct 19, 2016
1 parent 7021155 commit a380ccb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/carrierroute/route_config.c
Expand Up @@ -51,8 +51,10 @@ static int backup_config();
* @param ap format arguments
*/
void conf_error(cfg_t *cfg, const char * fmt, va_list ap) {
// FIXME this don't seems to work reliable, produces strange error messages
LM_GEN1(L_ERR, (char *) fmt, ap);
/* FIXME this don't seems to work reliable, produces strange error messages */
static char buf[2048];
snprintf(buf, 2048, fmt, ap);
LM_ERR("%s\n", buf);
}


Expand Down

0 comments on commit a380ccb

Please sign in to comment.