- self.log("somebody modified the share on us:"
- " shnum=%d: I thought they had #%d:R=%s,"
- " but testv reported #%d:R=%s" %
- (shnum,
- seqnum, base32.b2a(root_hash)[:4],
- other_seqnum, base32.b2a(other_roothash)[:4]),
- parent=lp, level=log.NOISY)
+ msg = ("somebody modified the share on us:"
+ " shnum=%d: I thought they had #%d:R=%s," %
+ (shnum,
+ seqnum, base32.b2a(root_hash)[:4]))
+ if unknown_format:
+ msg += (" but I don't know how to read share"
+ " format %d" % version)
+ else:
+ msg += " but testv reported #%d:R=%s" % \
+ (other_seqnum, other_roothash)
+ self.log(msg, parent=lp, level=log.NOISY)