[lib] reset multipath field widths before printing topology
authorChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 19 Nov 2008 21:17:50 +0000 (22:17 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 19 Nov 2008 21:17:50 +0000 (22:17 +0100)
commiteec3b7bac7e146069eb98d38afddbee3a9e9205d
treecd4be69b66cd92665e0dac8ebfd19e1cd04fdda9
parent9b2de9248a62913084d025a54088315cf0d979fa
[lib] reset multipath field widths before printing topology

Doing a "show topo" after "show maps" gave different output than "show topo"
on a freshly started multipathd or than "multipath -ll". This is due to
"show map" doing a get_multipath_layout(), which result is persistent, and
affects all subsequent users of the snprint_*() functions.

This patch ensures a predictable output format by reseting the multipath
field widths in snprint_multipath_topology().
libmultipath/print.c