[libmultipath] move snprint_[path|map]() to format based printing fns
authorroot <root@potab.(none)>
Fri, 19 Aug 2005 15:57:06 +0000 (17:57 +0200)
committerroot <root@potab.(none)>
Fri, 19 Aug 2005 15:57:06 +0000 (17:57 +0200)
commit94725d84f5351d526a6f9aaae3e7cba7d0313178
treed7b269c1cca28939b8e2b10a4123188ff1dd8240
parent90bb61a605924a31c25bc644f7e1c8011ce175df
[libmultipath] move snprint_[path|map]() to format based printing fns

 * path format magics :
 *
 * %w : multipath uid
 * %i : scsi tuple
 * %d : device name
 * %D : device major:minor
 * %t : device mapper path status
 * %T : checker path status
 * %s : scsi strings
 * %c : claimed
 *
 * map format magics :
 *
 * %w : multipath uid
 * %d : DM device name
 * %F : failback countdown
 * %C : checker countdown

and update all callers (nice cleanup).

The printing buffer overflow checking is done right at last.
libmultipath/print.c
libmultipath/print.h
multipath/main.c
multipathd/main.c