summaryrefslogtreecommitdiff
path: root/cmd/cmd_pageup.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_pageup.c')
-rw-r--r--cmd/cmd_pageup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/cmd_pageup.c b/cmd/cmd_pageup.c
index 4e0612b..9ee3050 100644
--- a/cmd/cmd_pageup.c
+++ b/cmd/cmd_pageup.c
@@ -20,14 +20,14 @@ int c_pageup( cmd_arg_t *arg )
int ret=-1;
int i,j;
- printf("Set file position\n");
+ //printf("Set file position\n");
//move position
int pos = file_pos(g_file);
- printf("pos %d\n",pos);
- printf("buf size %d\n",g_buf->size());
+ //printf("pos %d\n",pos);
+ //printf("buf size %d\n",g_buf->size());
pos -= g_buf->size();
- printf("pos %d\n",pos);
+ //printf("pos %d\n",pos);
file_seekp(g_file, pos);
//read from file
@@ -37,7 +37,7 @@ int c_pageup( cmd_arg_t *arg )
g_buf->realloc(g_file->blk_size);
}
- printf("read file\n");
+ //printf("read file\n");
char *buf_ptr;
int sz;
@@ -45,7 +45,7 @@ int c_pageup( cmd_arg_t *arg )
sz = g_buf->size();
//printf("sz %d ptr %lx",sz,buf_ptr);
ret = file_read_blk( g_file, (uint8_t *)buf_ptr, sz );
- printf("Readed %d bytes\n", ret);
+ //printf("Readed %d bytes\n", ret);
if ( (ret >= 0) && (ret <= g_buf->size()) )
{
g_buf->set_size(ret);