Changeset 1ccafee in mainline for uspace/srv
- Timestamp:
- 2010-01-27T22:22:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b9ac3c, a9bbe48d
- Parents:
- fb6f1a5
- Location:
- uspace/srv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/guid_part/guid_part.c
rfb6f1a5 r1ccafee 54 54 #include <devmap.h> 55 55 #include <sys/types.h> 56 #include <sys/typefmt.h> 56 57 #include <inttypes.h> 57 58 #include <libblock.h> … … 198 199 / (1024 * 1024); 199 200 printf(NAME ": Registered device %s: %" PRIu64 " blocks " 200 "%" PRIu 64 " MB.\n", name, (uint64_t)part->length, size_mb);201 "%" PRIuBN " MB.\n", name, part->length, size_mb); 201 202 202 203 part->dev = dev; -
uspace/srv/bd/part/mbr_part/mbr_part.c
rfb6f1a5 r1ccafee 64 64 #include <devmap.h> 65 65 #include <sys/types.h> 66 #include <sys/typefmt.h> 66 67 #include <inttypes.h> 67 68 #include <libblock.h> … … 248 249 size_mb = (part->length * block_size + 1024 * 1024 - 1) 249 250 / (1024 * 1024); 250 printf(NAME ": Registered device %s: %" PRIu64 " blocks " 251 "%" PRIu64 " MB.\n", 252 name, (uint64_t) part->length, size_mb); 251 printf(NAME ": Registered device %s: %" PRIuBN " blocks " 252 "%" PRIu64 " MB.\n", name, part->length, size_mb); 253 253 254 254 part->dev = dev; … … 336 336 rc = block_read_direct(indev_handle, ba, 1, brb); 337 337 if (rc != EOK) { 338 printf(NAME ": Failed reading EBR block at %u.\n", ba); 338 printf(NAME ": Failed reading EBR block at %" 339 PRIu32 ".\n", ba); 339 340 return rc; 340 341 } -
uspace/srv/taskmon/taskmon.c
rfb6f1a5 r1ccafee 39 39 #include <async.h> 40 40 #include <ipc/services.h> 41 #include <sys/typefmt.h> 41 42 #include <task.h> 42 43 #include <event.h> … … 60 61 thread = IPC_GET_ARG3(*call); 61 62 62 if (asprintf(&s_taskid, "% lld", taskid) < 0) {63 if (asprintf(&s_taskid, "%" PRIuTASKID, taskid) < 0) { 63 64 printf("Memory allocation failed.\n"); 64 65 return; 65 66 } 66 67 67 if (asprintf(&dump_fname, "/scratch/d %lld.txt", taskid) < 0) {68 if (asprintf(&dump_fname, "/scratch/d" PRIuTASKID ".txt", taskid) < 0) { 68 69 printf("Memory allocation failed.\n"); 69 70 return; 70 71 } 71 72 72 printf(NAME ": Task % lldfault in thread %p.\n", taskid, thread);73 printf(NAME ": Task %" PRIuTASKID " fault in thread %p.\n", taskid, thread); 73 74 74 75 #ifdef CONFIG_VERBOSE_DUMPS
Note:
See TracChangeset
for help on using the changeset viewer.