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.
This commit is contained in:
Дмитрий Левин 2016-01-18 21:34:42 +00:00
parent 2d544968fe
commit 6a9ac9636a

View File

@ -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: