forked from Imagelibrary/rtems
Removed usage of printf.
This commit is contained in:
@@ -142,7 +142,7 @@ int mount(
|
||||
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
|
||||
temp_mt_entry->options = options;
|
||||
if ( device )
|
||||
sprintf( temp_mt_entry->dev, "%s", device );
|
||||
strcpy( temp_mt_entry->dev, device );
|
||||
else
|
||||
temp_mt_entry->dev = 0;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ int imfs_dir_read(
|
||||
tmp_dirent.d_reclen = sizeof( struct dirent );
|
||||
the_jnode = (IMFS_jnode_t *) the_node;
|
||||
tmp_dirent.d_namlen = strlen( the_jnode->name );
|
||||
sprintf( tmp_dirent.d_name, "%s", the_jnode->name );
|
||||
strcpy( tmp_dirent.d_name, the_jnode->name );
|
||||
memcpy(
|
||||
buffer + bytes_transferred,
|
||||
(void *)&tmp_dirent,
|
||||
|
||||
@@ -126,7 +126,7 @@ int imfs_dir_read(
|
||||
tmp_dirent.d_reclen = sizeof( struct dirent );
|
||||
the_jnode = (IMFS_jnode_t *) the_node;
|
||||
tmp_dirent.d_namlen = strlen( the_jnode->name );
|
||||
sprintf( tmp_dirent.d_name, "%s", the_jnode->name );
|
||||
strcpy( tmp_dirent.d_name, the_jnode->name );
|
||||
memcpy(
|
||||
buffer + bytes_transferred,
|
||||
(void *)&tmp_dirent,
|
||||
|
||||
@@ -142,7 +142,7 @@ int mount(
|
||||
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
|
||||
temp_mt_entry->options = options;
|
||||
if ( device )
|
||||
sprintf( temp_mt_entry->dev, "%s", device );
|
||||
strcpy( temp_mt_entry->dev, device );
|
||||
else
|
||||
temp_mt_entry->dev = 0;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ int imfs_dir_read(
|
||||
tmp_dirent.d_reclen = sizeof( struct dirent );
|
||||
the_jnode = (IMFS_jnode_t *) the_node;
|
||||
tmp_dirent.d_namlen = strlen( the_jnode->name );
|
||||
sprintf( tmp_dirent.d_name, "%s", the_jnode->name );
|
||||
strcpy( tmp_dirent.d_name, the_jnode->name );
|
||||
memcpy(
|
||||
buffer + bytes_transferred,
|
||||
(void *)&tmp_dirent,
|
||||
|
||||
@@ -142,7 +142,7 @@ int mount(
|
||||
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
|
||||
temp_mt_entry->options = options;
|
||||
if ( device )
|
||||
sprintf( temp_mt_entry->dev, "%s", device );
|
||||
strcpy( temp_mt_entry->dev, device );
|
||||
else
|
||||
temp_mt_entry->dev = 0;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ int imfs_dir_read(
|
||||
tmp_dirent.d_reclen = sizeof( struct dirent );
|
||||
the_jnode = (IMFS_jnode_t *) the_node;
|
||||
tmp_dirent.d_namlen = strlen( the_jnode->name );
|
||||
sprintf( tmp_dirent.d_name, "%s", the_jnode->name );
|
||||
strcpy( tmp_dirent.d_name, the_jnode->name );
|
||||
memcpy(
|
||||
buffer + bytes_transferred,
|
||||
(void *)&tmp_dirent,
|
||||
|
||||
Reference in New Issue
Block a user