Re: [PATCH for vm-scalability] usemem: Fix the build warning

From: Fengguang Wu
Date: Wed Dec 25 2019 - 03:45:51 EST


Thanks teawater!

- write(1, buf, len);
+ if (write(1, buf, len) != len)
+ printf("Output buf \"%s\" fail\n", buf);

Changed it to

fprintf(stderr, "WARNING: statistics output may be incomplete.\n");

Thanks,
Fengguang