PERFORCE change 151669 for review

Sam Leffler sam at FreeBSD.org
Tue Oct 21 18:02:43 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=151669

Change 151669 by sam at sam_ebb on 2008/10/21 18:01:45

	warnx implicitly adds \n, remove explicit ones

Affected files ...

.. //depot/projects/vap/sbin/ifconfig/regdomain.c#10 edit

Differences ...

==== //depot/projects/vap/sbin/ifconfig/regdomain.c#10 (text+ko) ====

@@ -319,11 +319,11 @@
 	/* </band> */
 	if (iseq(name, "band") && mt->netband != NULL) {
 		if (mt->netband->band == NULL) {
-			warnx("no freqbands for band at line %ld\n",
+			warnx("no freqbands for band at line %ld",
 			   XML_GetCurrentLineNumber(mt->parser));
 		}
 		if (mt->netband->maxPower == 0) {
-			warnx("no maxpower for band at line %ld\n",
+			warnx("no maxpower for band at line %ld",
 			   XML_GetCurrentLineNumber(mt->parser));
 		}
 		/* default max power w/ DFS to max power */
@@ -340,15 +340,15 @@
 	/* </country> */
 	if (iseq(name, "country") && mt->country != NULL) {
 		if (mt->country->code == 0) {
-			warnx("no ISO cc for country at line %ld\n",
+			warnx("no ISO cc for country at line %ld",
 			   XML_GetCurrentLineNumber(mt->parser));
 		}
 		if (mt->country->name == NULL) {
-			warnx("no name for country at line %ld\n",
+			warnx("no name for country at line %ld",
 			   XML_GetCurrentLineNumber(mt->parser));
 		}
 		if (mt->country->rd == NULL) {
-			warnx("no regdomain reference for country at line %ld\n",
+			warnx("no regdomain reference for country at line %ld",
 			   XML_GetCurrentLineNumber(mt->parser));
 		}
 		mt->country = NULL;


More information about the p4-projects mailing list