Changeset 7e752b2 in mainline for uspace/srv/hid
- 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/srv/hid
- Files:
-
- 4 edited
-
console/console.c (modified) (2 diffs)
-
console/gcons.c (modified) (1 diff)
-
fb/serial_console.c (modified) (3 diffs)
-
s3c24xx_ts/s3c24xx_ts.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r202f57b r7e752b2 804 804 if (screenbuffer_init(&consoles[i].scr, 805 805 fb_info.cols, fb_info.rows) == NULL) { 806 printf(NAME ": Unable to allocate screen buffer % u\n", i);806 printf(NAME ": Unable to allocate screen buffer %zu\n", i); 807 807 return false; 808 808 } … … 813 813 814 814 char vc[DEVMAP_NAME_MAXLEN + 1]; 815 snprintf(vc, DEVMAP_NAME_MAXLEN, "%s/vc% u", NAMESPACE, i);815 snprintf(vc, DEVMAP_NAME_MAXLEN, "%s/vc%zu", NAMESPACE, i); 816 816 817 817 if (devmap_device_register(vc, &consoles[i].devmap_handle) != EOK) { -
uspace/srv/hid/console/gcons.c
r202f57b r7e752b2 157 157 158 158 char data[5]; 159 snprintf(data, 5, "% u", index + 1);159 snprintf(data, 5, "%zu", index + 1); 160 160 161 161 size_t i; -
uspace/srv/hid/fb/serial_console.c
r202f57b r7e752b2 47 47 #include <io/style.h> 48 48 #include <str.h> 49 #include <inttypes.h> 49 50 #include <io/screenbuffer.h> 50 51 … … 135 136 136 137 char control[MAX_CONTROL]; 137 snprintf(control, MAX_CONTROL, "\033[%u;%uf", row + 1, col + 1); 138 snprintf(control, MAX_CONTROL, "\033[%" PRIun ";%" PRIun "f", 139 row + 1, col + 1); 138 140 serial_puts(control); 139 141 } … … 253 255 { 254 256 char control[MAX_CONTROL]; 255 snprintf(control, MAX_CONTROL, "\033[0;% ur", last_row);257 snprintf(control, MAX_CONTROL, "\033[0;%" PRIun "r", last_row); 256 258 serial_puts(control); 257 259 } -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
r202f57b r7e752b2 50 50 #include <sysinfo.h> 51 51 #include <errno.h> 52 #include <inttypes.h> 52 53 53 54 #include "s3c24xx_ts.h" … … 136 137 ts->last_y = 0; 137 138 138 printf(NAME ": device at physical address 0x%x, inr %d.\n",139 ts->paddr, inr);139 printf(NAME ": device at physical address %p, inr %" PRIun ".\n", 140 (void *) ts->paddr, inr); 140 141 141 142 async_set_interrupt_received(s3c24xx_ts_irq_handler);
Note:
See TracChangeset
for help on using the changeset viewer.
