OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] [IPV4]: Formatting fix for /proc/net/fib_trie.
[PATCH] [IPV4]: Formatting fix for /proc/net/fib_trie. [message #26911] Tue, 05 February 2008 09:58 Go to next message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
The line in the /proc/net/fib_trie for route with TOS specified
- has extra \n at the end
- does not have a space after route scope
like below.
           |-- 1.1.1.1
              /32 universe UNICASTtos =1

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 net/ipv4/fib_trie.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 35851c9..f5fba3f 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2431,8 +2431,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
 					   rtn_type(buf2, sizeof(buf2),
 						    fa->fa_type));
 				if (fa->fa_tos)
-					seq_printf(seq, "tos =%d\n",
-						   fa->fa_tos);
+					seq_printf(seq, " tos=%d", fa->fa_tos);
 				seq_putc(seq, '\n');
 			}
 		}
-- 
1.5.3.rc5
Re: [PATCH] [IPV4]: Formatting fix for /proc/net/fib_trie. [message #26915 is a reply to message #26911] Tue, 05 February 2008 10:58 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: "Denis V. Lunev" <den@openvz.org>
Date: Tue,  5 Feb 2008 12:58:56 +0300

> The line in the /proc/net/fib_trie for route with TOS specified
> - has extra \n at the end
> - does not have a space after route scope
> like below.
>            |-- 1.1.1.1
>               /32 universe UNICASTtos =1
> 
> Signed-off-by: Denis V. Lunev <den@openvz.org>

Applied, thanks.
Previous Topic: [PATCH 0/2] dm-ioband v0.0.3: The I/O bandwidth controller: Introduction
Next Topic: [PATCH][INET]: Fix accidentally broken inet(6)_hash_connect's port offset calculations.
Goto Forum:
  


Current Time: Thu Aug 15 12:36:44 GMT 2024

Total time taken to generate the page: 0.03177 seconds