Changeset 199ccde in rtems for cpukit/libblock
- Timestamp:
- 05/08/09 04:55:53 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 1cf6593e
- Parents:
- 61541f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/bdpart.c
r61541f4 r199ccde 853 853 854 854 /* Set partition number for logical disk name */ 855 rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "% u", i + 1);855 rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); 856 856 if (rv >= RTEMS_BDPART_NUMBER_SIZE) { 857 857 esc = RTEMS_INVALID_NAME; … … 945 945 ) 946 946 { 947 rtems_status_code sc = RTEMS_SUCCESSFUL;948 947 rtems_status_code esc = RTEMS_SUCCESSFUL; 949 948 const char *disk_file_name = strrchr( disk_name, '/'); … … 990 989 for (i = 0; i < count; ++i) { 991 990 /* Create logical disk name */ 992 int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "% u", i + 1);991 int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); 993 992 if (rv >= RTEMS_BDPART_NUMBER_SIZE) { 994 993 esc = RTEMS_INVALID_NAME; … … 1032 1031 ) 1033 1032 { 1034 rtems_status_code sc = RTEMS_SUCCESSFUL;1035 1033 rtems_status_code esc = RTEMS_SUCCESSFUL; 1036 1034 const char *disk_file_name = strrchr( disk_name, '/'); … … 1067 1065 for (i = 0; i < count; ++i) { 1068 1066 /* Create mount point */ 1069 int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "% u", i + 1);1067 int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%lu", i + 1); 1070 1068 if (rv >= RTEMS_BDPART_NUMBER_SIZE) { 1071 1069 esc = RTEMS_INVALID_NAME;
Note: See TracChangeset
for help on using the changeset viewer.