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:
parent
2d544968fe
commit
6a9ac9636a
8
quota.c
8
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:
|
||||
|
Loading…
Reference in New Issue
Block a user