diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index 57224cdc0783a8af8c5c12346f829aa77d408eb1..71ab80f3641161cbf68038a2b1ee2491172d6dd0 100644 --- a/lustre/lov/lproc_lov.c +++ b/lustre/lov/lproc_lov.c @@ -143,8 +143,8 @@ static int lov_rd_stripecount(char *page, char **start, off_t off, int count, LASSERT(dev != NULL); desc = &dev->u.lov.desc; *eof = 1; - return snprintf(page, count, "%ld\n", - (long)(desc->ld_default_stripe_count + 1) - 1); + return snprintf(page, count, "%d\n", + (__s16)(desc->ld_default_stripe_count + 1) - 1); } static int lov_wr_stripecount(struct file *file, const char *buffer,