commit a72c4af60ba6e38d8025562a9f073fd95d163197 from: Omar Polo date: Tue Dec 21 10:58:57 2021 UTC group the "no body replies" handling together commit - 369e8fb78f85eb24c718ee9317a47dc0fb3d5e3b commit + a72c4af60ba6e38d8025562a9f073fd95d163197 blob - 37f52de3fe7bbf4220579af0d172e83adb38b7a4 blob + 4283e9c26d28ec654de163b9a52877a17ec90c40 --- kamirepl.c +++ kamirepl.c @@ -792,16 +792,14 @@ pp_msg(uint32_t len, uint8_t type, uint16_t tag, const case Rattach: pp_qid(d, len); - break; - - case Rclunk: - if (len != 0) - printf("invalid Rclunk: %"PRIu32" extra bytes", len); break; + case Rclunk: case Rflush: + case Rremove: if (len != 0) - printf("invalid Rflush: %"PRIu32" extra bytes", len); + printf("invalid %s: %"PRIu32" extra bytes", + pp_msg_type(type), len); break; case Rwalk: @@ -893,11 +891,6 @@ pp_msg(uint32_t len, uint8_t type, uint16_t tag, const count = le32toh(count); printf("count=%d", count); - break; - - case Rremove: - if (len != 0) - printf("invalid Rremove: %"PRIu32" extra bytes", len); break; case Rerror: