Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2018 18:06:23 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339740 - head/sbin/ipfw
Message-ID:  <201810251806.w9PI6NE3056767@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Oct 25 18:06:23 2018
New Revision: 339740
URL: https://svnweb.freebsd.org/changeset/base/339740

Log:
  Use correct format specificator to print setdscp action.
  
  PR:		232642
  MFC after:	3 days

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c	Thu Oct 25 17:42:43 2018	(r339739)
+++ head/sbin/ipfw/ipfw2.c	Thu Oct 25 18:06:23 2018	(r339740)
@@ -1946,7 +1946,7 @@ print_action_instruction(struct buf_pr *bp, const stru
 		if (s != NULL)
 			bprintf(bp, "setdscp %s", s);
 		else
-			bprintf(bp, "setdscp %s", cmd->arg1 & 0x3F);
+			bprintf(bp, "setdscp %u", cmd->arg1 & 0x3F);
 		break;
 	case O_REASS:
 		bprintf(bp, "reass");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810251806.w9PI6NE3056767>