aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-05-13 15:26:59 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-05-13 15:26:59 +0800
commit695fe3e49e318ec8c708c304c3c6bd5b6c868cb4 (patch)
tree867849d1edf5ca016288e65c1d5c18860c22ca60
parentf095e12bd0bbffbafb835636675d232316a49c04 (diff)
downloaddevel-695fe3e49e318ec8c708c304c3c6bd5b6c868cb4.tar.gz
devel-695fe3e49e318ec8c708c304c3c6bd5b6c868cb4.tar.xz
devel-695fe3e49e318ec8c708c304c3c6bd5b6c868cb4.zip
small change
-rw-r--r--extlinux.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/extlinux.c b/extlinux.c
index e752fe5..1deedd0 100644
--- a/extlinux.c
+++ b/extlinux.c
@@ -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:
/*