(parse_rank_function) Fix msg() bug found by -Wformat.