Changeset 7e752b2 in mainline for uspace/lib
- Timestamp:
- 2010-11-26T01:33:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf61d3a
- Parents:
- 202f57b
- Location:
- uspace/lib
- Files:
-
- 3 edited
-
block/libblock.c (modified) (2 diffs)
-
c/generic/stacktrace.c (modified) (1 diff)
-
drv/generic/driver.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.c
r202f57b r7e752b2 816 816 UPPER32(ba), cnt); 817 817 if (rc != EOK) { 818 printf("Error %d reading % dblocks starting at block %" PRIuOFF64819 " from device handle % d\n", rc, cnt, ba,818 printf("Error %d reading %zu blocks starting at block %" PRIuOFF64 819 " from device handle %" PRIun "\n", rc, cnt, ba, 820 820 devcon->devmap_handle); 821 821 #ifndef NDEBUG … … 843 843 UPPER32(ba), cnt); 844 844 if (rc != EOK) { 845 printf("Error %d writing % dblocks starting at block %" PRIuOFF64846 " to device handle % d\n", rc, cnt, ba, devcon->devmap_handle);845 printf("Error %d writing %zu blocks starting at block %" PRIuOFF64 846 " to device handle %" PRIun "\n", rc, cnt, ba, devcon->devmap_handle); 847 847 #ifndef NDEBUG 848 848 stacktrace_print(); -
uspace/lib/c/generic/stacktrace.c
r202f57b r7e752b2 50 50 51 51 while (stacktrace_fp_valid(&st, fp)) { 52 printf("%p: %p()\n", fp,pc);52 printf("%p: %p()\n", (void *) fp, (void *) pc); 53 53 (void) stacktrace_ra_get(&st, fp, &pc); 54 54 (void) stacktrace_fp_prev(&st, fp, &nfp); -
uspace/lib/drv/generic/driver.c
r202f57b r7e752b2 48 48 #include <ctype.h> 49 49 #include <errno.h> 50 #include <inttypes.h> 50 51 51 52 #include <ipc/driver.h> … … 173 174 res = driver->driver_ops->add_device(dev); 174 175 if (0 == res) { 175 printf("%s: new device with handle = %xwas added.\n",176 printf("%s: new device with handle=%" PRIun " was added.\n", 176 177 driver->name, dev_handle); 177 178 } else { 178 printf("%s: failed to add a new device with handle = % d.\n",179 printf("%s: failed to add a new device with handle = %" PRIun ".\n", 179 180 driver->name, dev_handle); 180 181 remove_from_devices_list(dev); … … 225 226 if (dev == NULL) { 226 227 printf("%s: driver_connection_gen error - no device with handle" 227 " % xwas found.\n", driver->name, handle);228 " %" PRIun " was found.\n", driver->name, handle); 228 229 ipc_answer_0(iid, ENOENT); 229 230 return; … … 289 290 printf("%s: driver_connection_gen error - ", 290 291 driver->name); 291 printf("device with handle % dhas no interface "292 printf("device with handle %" PRIun " has no interface " 292 293 "with id %d.\n", handle, iface_idx); 293 294 ipc_answer_0(callid, ENOTSUP);
Note:
See TracChangeset
for help on using the changeset viewer.
