]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/m_ematch.c
lib: introduce print_nl
[mirror_iproute2.git] / tc / m_ematch.c
index 61f8fb3fc4545d722445d18e1d6e0b766d91035a..a524b520b27625857aa300a8b3c24a5e6951a0ea 100644 (file)
@@ -161,7 +161,7 @@ static struct ematch_util *get_ematch_kind(char *kind)
 
 static struct ematch_util *get_ematch_kind_num(__u16 kind)
 {
-       char name[32];
+       char name[513];
 
        if (lookup_map(kind, name, sizeof(name), EMATCH_MAP) < 0)
                return NULL;
@@ -277,6 +277,7 @@ static int flatten_tree(struct ematch *head, struct ematch *tree)
        return count;
 }
 
+__attribute__((format(printf, 5, 6)))
 int em_parse_error(int err, struct bstr *args, struct bstr *carg,
                   struct ematch_util *e, char *fmt, ...)
 {