summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/Match.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos/Match.pm')
-rw-r--r--lib/Vyatta/Qos/Match.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index 7ac9ce9..8dda94d 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -86,7 +86,8 @@ sub filter {
my $p = $self->{$proto};
next unless $p;
- printf "filter add dev %s parent %x: prio %d", $dev, $parent, $prio;
+ printf "filter add dev %s parent %x:", $dev, $parent;
+ printf " prio %d", $prio if ($prio);
if ($proto ne 'ether') {
print " protocol $proto u32";
print " match $proto dsfield $$p{dsfield} 0xff" if $$p{dsfield};