openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/utils.c
void nl_new_line(struct nl_dump_params* params)
{
    params->dp_line++;

    if (params->dp_prefix)
    {
        int i;
        for (i = 0; i < params->dp_prefix; i++)
        {
            if (params->dp_fd)
                fprintf(params->dp_fd, " ");
            else if (params->dp_buf)
                strncat(params->dp_buf, " ",
                        params->dp_buflen - strlen(params->dp_buf) - 1);
        }
    }

    if (params->dp_nl_cb)
        params->dp_nl_cb(params, params->dp_line);
}
/**
 * Handle a new line while dumping
 * @arg params		Dumping parameters
 *
 * This function must be called before dumping any onto a
 * new line. It will ensure proper prefixing as specified
 * by the dumping parameters.
 *
 * @note This function will NOT dump any newlines itself
 */
Handle a new line while dumping
@arg params          Dumping parameters

This function must be called before dumping any onto a
new line. It will ensure proper prefixing as specified
by the dumping parameters.

@note This function will NOT dump any newlines itself
Handle a new line while dumping @arg params Dumping parameters This function must be called before dumping any onto a new line . It will ensure proper prefixing as specified by the dumping parameters . @note This function will NOT dump any newlines itself
void nl_new_line(struct nl_dump_params* params)
{
    params->dp_line++;
    if (params->dp_prefix)
    {
        int i;
        for (i = 0; i < params->dp_prefix; i++)
        {
            if (params->dp_fd)
                fprintf(params->dp_fd, " ");
            else if (params->dp_buf)
                strncat(params->dp_buf, " ",
                        params->dp_buflen - strlen(params->dp_buf) - 1);
        }
    }
    if (params->dp_nl_cb)
        params->dp_nl_cb(params, params->dp_line);
}
void nl_new_line ( struct nl_dump_params * params ) { params -> dp_line ++ ; if ( params -> dp_prefix ) { int i ; for ( i = 0 ; i < params -> dp_prefix ; i ++ ) { if ( params -> dp_fd ) fprintf ( params -> dp_fd , " " ) ; else if ( params -> dp_buf ) strncat ( params -> dp_buf , " " , params -> dp_buflen - strlen ( params -> dp_buf ) - 1 ) ; } } if ( params -> dp_nl_cb ) params -> dp_nl_cb ( params , params -> dp_line ) ; }
Handle a new line while dumping
 @arg params          Dumping parameters
Handle a new line while dumping @arg params Dumping parameters