From 53355d095cf6e9f7c827bf0b887630570672b5ca Mon Sep 17 00:00:00 2001 From: nvt-se Date: Mon, 1 Dec 2008 15:58:14 +0000 Subject: [PATCH] increase file size range for display in the ls command. --- apps/shell/shell-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shell/shell-file.c b/apps/shell/shell-file.c index 5c1713058..d3fbd9fe7 100644 --- a/apps/shell/shell-file.c +++ b/apps/shell/shell-file.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-file.c,v 1.7 2008/11/24 15:18:27 nvt-se Exp $ + * $Id: shell-file.c,v 1.8 2008/12/01 15:58:14 nvt-se Exp $ */ /** @@ -88,7 +88,7 @@ PROCESS_THREAD(shell_ls_process, ev, data) totsize = 0; while(cfs_readdir(&dir, &dirent) == 0) { totsize += dirent.size; - sprintf(buf, "%3d ", dirent.size); + sprintf(buf, "%3lu ", (unsigned long)dirent.size); /* printf("'%s'\n", dirent.name);*/ shell_output_str(&ls_command, buf, dirent.name); }