@@ -62,7 +62,7 @@ kb_to_lba(uint32_t len_kb, uint32_t sect_size)
62
62
lba = (lba + (uint64_t )sect_size - 1 ) & ~((uint64_t )sect_size - 1 );
63
63
lba /= (uint64_t )sect_size ;
64
64
if (lba >= 0xffffffffULL )
65
- LOGE ("Error converting kb -> lba. 32bit overflow, expect weirdness" );
65
+ ALOGE ("Error converting kb -> lba. 32bit overflow, expect weirdness" );
66
66
return (uint32_t )(lba & 0xffffffffULL );
67
67
}
68
68
@@ -75,12 +75,12 @@ mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
75
75
struct pc_partition * pentry ;
76
76
77
77
if (pnum >= PC_NUM_BOOT_RECORD_PARTS ) {
78
- LOGE ("Maximum number of primary partition exceeded." );
78
+ ALOGE ("Maximum number of primary partition exceeded." );
79
79
return NULL ;
80
80
}
81
81
82
82
if (!(item = alloc_wl (sizeof (struct pc_partition )))) {
83
- LOGE ("Unable to allocate memory for partition entry." );
83
+ ALOGE ("Unable to allocate memory for partition entry." );
84
84
return NULL ;
85
85
}
86
86
@@ -146,7 +146,7 @@ mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,
146
146
uint32_t len ; /* in lba units */
147
147
148
148
if (!(item = alloc_wl (sizeof (struct pc_boot_record )))) {
149
- LOGE ("Unable to allocate memory for EBR." );
149
+ ALOGE ("Unable to allocate memory for EBR." );
150
150
return NULL ;
151
151
}
152
152
@@ -163,7 +163,7 @@ mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,
163
163
len = kb_to_lba (pinfo -> len_kb , dinfo -> sect_size );
164
164
else {
165
165
if (pnext ) {
166
- LOGE ("Only the last partition can be specified to fill the disk "
166
+ ALOGE ("Only the last partition can be specified to fill the disk "
167
167
"(name = '%s')" , pinfo -> name );
168
168
goto fail ;
169
169
}
@@ -233,7 +233,7 @@ config_mbr(struct disk_info *dinfo)
233
233
if ((temp_wr = mk_pri_pentry (dinfo , NULL , cnt , & cur_lba )))
234
234
wlist_add (& wr_list , temp_wr );
235
235
else {
236
- LOGE ("Cannot create primary extended partition." );
236
+ ALOGE ("Cannot create primary extended partition." );
237
237
goto fail ;
238
238
}
239
239
}
@@ -259,7 +259,7 @@ config_mbr(struct disk_info *dinfo)
259
259
if (temp_wr )
260
260
wlist_add (& wr_list , temp_wr );
261
261
else {
262
- LOGE ("Cannot create partition %d (%s)." , cnt , pinfo -> name );
262
+ ALOGE ("Cannot create partition %d (%s)." , cnt , pinfo -> name );
263
263
goto fail ;
264
264
}
265
265
}
@@ -270,7 +270,7 @@ config_mbr(struct disk_info *dinfo)
270
270
cur_lba = 0 ;
271
271
memset (& blank , 0 , sizeof (struct part_info ));
272
272
if (!(temp_wr = mk_pri_pentry (dinfo , & blank , cnt , & cur_lba ))) {
273
- LOGE ("Cannot create blank partition %d." , cnt );
273
+ ALOGE ("Cannot create blank partition %d." , cnt );
274
274
goto fail ;
275
275
}
276
276
wlist_add (& wr_list , temp_wr );
@@ -279,7 +279,7 @@ config_mbr(struct disk_info *dinfo)
279
279
return wr_list ;
280
280
281
281
nospace :
282
- LOGE ("Not enough space to add parttion '%s'." , pinfo -> name );
282
+ ALOGE ("Not enough space to add parttion '%s'." , pinfo -> name );
283
283
284
284
fail :
285
285
wlist_free (wr_list );
@@ -310,13 +310,13 @@ find_mbr_part(struct disk_info *dinfo, const char *name)
310
310
num ++ ;
311
311
312
312
if (!(dev_name = malloc (MAX_NAME_LEN ))) {
313
- LOGE ("Cannot allocate memory." );
313
+ ALOGE ("Cannot allocate memory." );
314
314
return NULL ;
315
315
}
316
316
317
317
num = snprintf (dev_name , MAX_NAME_LEN , "%s%d" , dinfo -> device , num );
318
318
if (num >= MAX_NAME_LEN ) {
319
- LOGE ("Device name is too long?!" );
319
+ ALOGE ("Device name is too long?!" );
320
320
free (dev_name );
321
321
return NULL ;
322
322
}
0 commit comments