From 6a9ac9636a6079a47592df2c889faa07c76bc755 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 18 Jan 2016 21:34:42 +0000 Subject: [PATCH] quotactl: fix Q_GETFMT and Q_XQUOTAON commands decoding * quota.c (decode_cmd_data): As quota format value and xfs quota flags are in-memory constants, print it like an array of one element instead of a structure. --- quota.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quota.c b/quota.c index df4a19aa..897f705b 100644 --- a/quota.c +++ b/quota.c @@ -275,9 +275,9 @@ decode_cmd_data(struct tcb *tcp, uint32_t cmd, unsigned long data) if (umove_or_printaddr(tcp, data, &fmt)) break; - tprints("{"); + tprints("["); printxval(quota_formats, fmt, "QFMT_VFS_???"); - tprints("}"); + tprints("]"); break; } case Q_GETINFO: @@ -377,9 +377,9 @@ decode_cmd_data(struct tcb *tcp, uint32_t cmd, unsigned long data) if (umove_or_printaddr(tcp, data, &flag)) break; - tprints("{"); + tprints("["); printflags(xfs_quota_flags, flag, "XFS_QUOTA_???"); - tprints("}"); + tprints("]"); break; } default: -- 2.40.0