summaryrefslogtreecommitdiff
path: root/repquota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2007-02-21 13:51:25 +0000
committerjkar8572 <jkar8572>2007-02-21 13:51:25 +0000
commit163122f4ead1f93c8d4dce369043f609efffd604 (patch)
tree562a01b499458509f109371917eaffb3e1e3b499 /repquota.c
parent873a24fb8326047b64f45d39a2a79bd72fc0091a (diff)
* fixed XFS handling to work with loopback mounted devices (Jan Kara)
* fixed mountpoints scanning to make XFS -x delete command work (Jan Kara) * fixes of signed vs unsigned int issues (Jan Kara) * fixed a format string bug in reporting of raw grace times in repquota (Jan Kara)
Diffstat (limited to 'repquota.c')
-rw-r--r--repquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/repquota.c b/repquota.c
index 48247f7..4420566 100644
--- a/repquota.c
+++ b/repquota.c
@@ -181,7 +181,7 @@ static void print(struct dquot *dquot, char *name)
pname[PRINTNAMELEN] = 0;
if (entry->dqb_bsoftlimit && toqb(entry->dqb_curspace) >= entry->dqb_bsoftlimit)
if (flags & FL_RAWGRACE)
- sprintf(time, "%s", entry->dqb_btime);
+ sprintf(time, "%Lu", (unsigned long long)entry->dqb_btime);
else
difftime2str(entry->dqb_btime, time);
else
@@ -198,7 +198,7 @@ static void print(struct dquot *dquot, char *name)
numbuf[0], numbuf[1], numbuf[2], time);
if (entry->dqb_isoftlimit && entry->dqb_curinodes >= entry->dqb_isoftlimit)
if (flags & FL_RAWGRACE)
- sprintf(time, "%s", entry->dqb_itime);
+ sprintf(time, "%Lu", (unsigned long long)entry->dqb_itime);
else
difftime2str(entry->dqb_itime, time);
else