[v3 2/2] eal: add total memory size in memory dump APIs
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 10 16:52:17 CEST 2024
On Thu, 10 Oct 2024 12:46:21 +0530
Gagandeep Singh <g.singh at nxp.com> wrote:
> This patch add total memory size dump in memzone and
> memsegments dump APIs.
>
> Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
Looks good, and acking it as is.
But you could simplify this:
+ struct memzone_info info;
+
+ memset(&info, 0, sizeof(info));
+ info.f = f;
As:
struct memzone_info info = { .f = f };
More information about the dev
mailing list