From c348cf92844ecc099dea151be3658740ecbaf440 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 11 Jun 2008 16:48:52 -0700 Subject: Fix formatting of error message Add newline in right spot so words don't run together. --- scripts/VyattaQosTrafficShaper.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index 9564c43..6b76eb0 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -107,9 +107,10 @@ my $rate = _getPercentRate($self->{_rate}, $limit); if ($rate > $limit) { print "Configuration error in: $level\n"; - printf STDERR "The bandwidth reserved for this class (%dKbps) must be", + printf STDERR + "The bandwidth reserved for this class (%dKbps) must be less than\n", $rate / 1000; - printf STDERR "less than the bandwidth for the overall policy (%dKbps)\n", + printf STDERR "the bandwidth for the overall policy (%dKbps)\n", $limit / 1000; exit 1; } @@ -117,9 +118,10 @@ my $ceil = _getPercentRate($self->{_ceiling}, $limit); if (defined $ceil && $ceil < $rate) { print "Configuration error in: $level\n"; - printf STDERR "The bandwidth ceiling for this class (%dKbps) must be", + printf STDERR + "The bandwidth ceiling for this class (%dKbps) must be less than\n", $ceil / 1000; - printf STDERR "less than the reserved bandwidth for the class (%dKbps)\n", + printf STDERR "the reserved bandwidth for the class (%dKbps)\n", $rate / 1000; exit 1; } -- cgit v1.2.3