Skip to content
Snippets Groups Projects
Commit 76107116 authored by deen's avatar deen
Browse files

Fix casting.

b=16698
i=oleg.drokin
i=robert.read
parent 78186ab4
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment