From: deen Date: Fri, 29 Aug 2008 13:22:23 +0000 (+0000) Subject: Fix casting. X-Git-Tag: v1_7_100~1^271 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=413f6feed58dd753b483a2b3714001b1d6d19986;p=fs%2Flustre-release.git Fix casting. b=16698 i=oleg.drokin i=robert.read --- diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index 391d01f..653a9e2 100644 --- a/lustre/lov/lproc_lov.c +++ b/lustre/lov/lproc_lov.c @@ -145,8 +145,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,