From 3579dcf7da4edf3ba729e1d71fbe91d1e1f0b5ad Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 11 Apr 2004 03:49:21 +0000 Subject: [PATCH] * ver_archivo emite por stderr para poder hacer un pipe desde la GUI --- emufs/emufs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emufs/emufs.c b/emufs/emufs.c index 6425abd..8f68f82 100644 --- a/emufs/emufs.c +++ b/emufs/emufs.c @@ -261,14 +261,14 @@ int ver_archivo_FS(EMUFS *emu) } fread(®,sizeof(reg),1,f_block_free); while ( !feof(f_block_free) ){ - printf(" Bloque = %li Espacio libre = %li\n",reg.n_marker, reg.n_freespace); + fprintf(stderr, " Bloque = %li Espacio libre = %li\n",reg.n_marker, reg.n_freespace); fread(®,sizeof(reg),1,f_block_free); } fclose(f_block_free); /* Imprimo la lista de bloques/registros */ - printf("BLOQUES Y REGISTROS\n"); + fprintf(stderr, "BLOQUES Y REGISTROS\n"); strcpy(name_f_block_free,emu->nombre); strcat(name_f_block_free,".idx"); { @@ -276,7 +276,7 @@ int ver_archivo_FS(EMUFS *emu) f_block_free = fopen(name_f_block_free, "r"); fread(&r, sizeof(EMUFS_IDX), 1, f_block_free); while (!feof(f_block_free)) { - printf("ID %li en bloque %li\n", r.n_idreg, r.n_location); + fprintf(stderr, "ID %li en bloque %li\n", r.n_idreg, r.n_location); fread(&r, sizeof(EMUFS_IDX), 1, f_block_free); } fclose(f_block_free); -- 2.43.0