]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: directly write tt entries without buffering
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Sat, 22 Oct 2011 16:15:26 +0000 (18:15 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:33 +0000 (13:08 +0100)
commit6188fa30e647ac4520eca07d361ae513d895e067
tree1cee26067baf32ccebf12b5ff6b93698d3e1e363
parent6edac8b1a23f801378facacc9b6c59de2dd5de3b
batman-adv: directly write tt entries without buffering

When the translation tables (global and local) are written for debugfs,
it is not neccesary to allocate a buffer, we can directly use
seq_printf() to print them out.

This might actually be safer if the table changes between size
calculation and traversal, and we can't estimate the required size
wrong.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c