mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Minor tweak to ensure kstat values are printed correctly on x86_64 at least
Additionally fix a minor typo in the .ul ULONG case. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@131 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
c58f753ddb
commit
cfe5749941
@ -119,16 +119,16 @@ kstat_seq_show_named(struct seq_file *f, kstat_named_t *knp)
|
|||||||
seq_printf(f, "%u", knp->value.ui32);
|
seq_printf(f, "%u", knp->value.ui32);
|
||||||
break;
|
break;
|
||||||
case KSTAT_DATA_INT64:
|
case KSTAT_DATA_INT64:
|
||||||
seq_printf(f, "%d", (int)knp->value.i64);
|
seq_printf(f, "%lld", (signed long long)knp->value.i64);
|
||||||
break;
|
break;
|
||||||
case KSTAT_DATA_UINT64:
|
case KSTAT_DATA_UINT64:
|
||||||
seq_printf(f, "%u", (unsigned int)knp->value.ui64);
|
seq_printf(f, "%llu", (unsigned long long)knp->value.ui64);
|
||||||
break;
|
break;
|
||||||
case KSTAT_DATA_LONG:
|
case KSTAT_DATA_LONG:
|
||||||
seq_printf(f, "%ld", knp->value.l);
|
seq_printf(f, "%ld", knp->value.l);
|
||||||
break;
|
break;
|
||||||
case KSTAT_DATA_ULONG:
|
case KSTAT_DATA_ULONG:
|
||||||
seq_printf(f, "%lu", knp->value.l);
|
seq_printf(f, "%lu", knp->value.ul);
|
||||||
break;
|
break;
|
||||||
case KSTAT_DATA_STRING:
|
case KSTAT_DATA_STRING:
|
||||||
KSTAT_NAMED_STR_PTR(knp)
|
KSTAT_NAMED_STR_PTR(knp)
|
||||||
|
Loading…
Reference in New Issue
Block a user