Use the function `util_int_format_count( )` which will count the number of '%d' specifiers in a string:

    if (util_int_format_count( path ) != 1)
        /* Trouble .. */