diff options
-rw-r--r-- | extlinux.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -531,11 +531,12 @@ __u32 linsector(__u32 lin_sector) * * same as above, execpt si is a pointer to a open_file_t * - * @param: ES:BX ----> buffer - * @param: DS:SI ----> pointer to open_file_t - * @param: cx ----> sector count ( 0xffff = until end of file ) - * - * @return: ecx = number of bytes read + * @param: buf, the buffer to store data + * @param: file, the pointer to open_file_t + * @param: sectors, number of sectors to read + * @param: have_more, used to indicate if there are more in the file + * + * @return: number of bytes read * */ int getfssec(char *buf, struct open_file_t *file, int sectors, int *have_more) @@ -579,15 +580,15 @@ int getfssec(char *buf, struct open_file_t *file, int sectors, int *have_more) #if 0 /* Debug message */ - printf("/**********************************************************\n"); - printf(" the file you are reading stores at sector --0x%x--0x%x\n", + printf("/**************************************************\n"); + printf("You are reading stores at sector --0x%x--0x%x\n", frag_start, frag_start + con_sec_cnt -1); - printf("**********************************************************/\n"); + printf("**************************************************/\n"); #endif getlinsec_ext(buf, frag_start, con_sec_cnt); buf += con_sec_cnt << 9; - file->file_sector += con_sec_cnt; /* next sector index */ + file->file_sector += con_sec_cnt; /* next sector index */ }while(sectors); @@ -741,9 +742,8 @@ struct open_file_t* searchdir(char * filename, __u32 *file_len) lnk_end = SymlinkTmpBuf + *file_len; } else { /* slow symlink */ - getfssec(SymlinkTmpBuf, file, SYMLINK_SECTORS, &have_more); + getfssec(SymlinkTmpBuf,file,SYMLINK_SECTORS,&have_more); lnk_end = SymlinkTmpBuf + *file_len; - } symlink_finish: /* |