From: Dmitry V. Levin Date: Mon, 18 Jan 2016 21:34:42 +0000 (+0000) Subject: quotactl: fix Q_GETFMT and Q_XQUOTAON commands decoding X-Git-Tag: v4.12~632 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a9ac9636a6079a47592df2c889faa07c76bc755;p=strace 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. --- 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: