xref: /netbsd-src/external/bsd/ipf/dist/lib/printifname.c (revision 13885a665959c62f13a82b3caedf986eaa17aa31)
1*13885a66Sdarrenr /*	$NetBSD: printifname.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
2bc4097aaSchristos 
3bc4097aaSchristos /*
4c9d5dc6cSdarrenr  * Copyright (C) 2012 by Darren Reed.
5bc4097aaSchristos  *
6bc4097aaSchristos  * See the IPFILTER.LICENCE file for details on licencing.
7bc4097aaSchristos  *
8*13885a66Sdarrenr  * Id: printifname.c,v 1.1.1.2 2012/07/22 13:44:40 darrenr Exp $
9bc4097aaSchristos  */
10bc4097aaSchristos 
11bc4097aaSchristos #include "ipf.h"
12bc4097aaSchristos 
13bc4097aaSchristos 
14bc4097aaSchristos void
printifname(format,name,ifp)15bc4097aaSchristos printifname(format, name, ifp)
16bc4097aaSchristos 	char *format, *name;
17bc4097aaSchristos 	void *ifp;
18bc4097aaSchristos {
19bc4097aaSchristos 	PRINTF("%s%s", format, name);
20bc4097aaSchristos 	if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
21bc4097aaSchristos 		PRINTF("(!)");
22bc4097aaSchristos }
23