[PATCH v5 18/24] util: fix interleaving of error prefixes