Changeset 769f47a in rtems
- Timestamp:
- Feb 28, 2003, 7:29:21 AM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- f0daa4c
- Parents:
- 9c59c2d9
- Location:
- cpukit/libmisc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmisc/ChangeLog
r9c59c2d9 r769f47a 1 2003-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 capture/capture-cli.c: Add proper definition to avoid compiler 4 warnings. Apply int = getchar(). 5 1 6 2003-02-14 Till Straumann <strauman@slac.stanford.edu> 2 7 -
cpukit/libmisc/capture/capture-cli.c
r9c59c2d9 r769f47a 59 59 60 60 static void 61 rtems_capture_cli_open (int argc, char **argv) 61 rtems_capture_cli_open ( 62 int argc, 63 char **argv, 64 unsigned32 command_arg, 65 boolean verbose ) 62 66 { 63 67 rtems_unsigned32 size = 0; … … 127 131 128 132 static void 129 rtems_capture_cli_close (int argc, char **argv) 133 rtems_capture_cli_close ( 134 int argc, 135 char **argv, 136 unsigned32 command_arg, 137 boolean verbose ) 130 138 { 131 139 rtems_status_code sc; … … 152 160 153 161 static void 154 rtems_capture_cli_enable (int argc, char **argv) 162 rtems_capture_cli_enable ( 163 int argc, 164 char **argv, 165 unsigned32 command_arg, 166 boolean verbose ) 155 167 { 156 168 rtems_status_code sc; … … 177 189 178 190 static void 179 rtems_capture_cli_disable (int argc, char **argv) 191 rtems_capture_cli_disable ( 192 int argc, 193 char **argv, 194 unsigned32 command_arg, 195 boolean verbose ) 180 196 { 181 197 rtems_status_code sc; … … 202 218 203 219 static void 204 rtems_capture_cli_task_list (int argc, char **argv) 220 rtems_capture_cli_task_list ( 221 int argc, 222 char **argv, 223 unsigned32 command_arg, 224 boolean verbose ) 205 225 { 206 226 rtems_task_priority ceiling = rtems_capture_watch_get_ceiling (); … … 434 454 435 455 static void 436 rtems_capture_cli_task_load (int argc, char **argv) 456 rtems_capture_cli_task_load ( 457 int argc, 458 char **argv, 459 unsigned32 command_arg, 460 boolean verbose ) 437 461 { 438 462 rtems_status_code sc; … … 473 497 for (;;) 474 498 { 475 charc = getchar ();499 int c = getchar (); 476 500 477 501 if ((c == '\r') || (c == '\n')) … … 501 525 502 526 static void 503 rtems_capture_cli_watch_list (int argc, char **argv) 527 rtems_capture_cli_watch_list ( 528 int argc, 529 char **argv, 530 unsigned32 command_arg, 531 boolean verbose ) 504 532 { 505 533 rtems_capture_control_t* control = rtems_capture_get_control_list (); … … 623 651 624 652 static void 625 rtems_capture_cli_watch_add (int argc, char **argv) 653 rtems_capture_cli_watch_add ( 654 int argc, 655 char **argv, 656 unsigned32 command_arg, 657 boolean verbose ) 626 658 { 627 659 rtems_status_code sc; … … 681 713 682 714 static void 683 rtems_capture_cli_watch_del (int argc, char **argv) 715 rtems_capture_cli_watch_del ( 716 int argc, 717 char **argv, 718 unsigned32 command_arg, 719 boolean verbose ) 684 720 { 685 721 rtems_status_code sc; … … 738 774 739 775 static void 740 rtems_capture_cli_watch_control (int argc, char **argv) 776 rtems_capture_cli_watch_control ( 777 int argc, 778 char **argv, 779 unsigned32 command_arg, 780 boolean verbose ) 741 781 { 742 782 rtems_status_code sc; … … 800 840 801 841 static void 802 rtems_capture_cli_watch_global (int argc, char **argv) 842 rtems_capture_cli_watch_global ( 843 int argc, 844 char **argv, 845 unsigned32 command_arg, 846 boolean verbose ) 803 847 { 804 848 rtems_status_code sc; … … 850 894 851 895 static void 852 rtems_capture_cli_watch_ceiling (int argc, char **argv) 896 rtems_capture_cli_watch_ceiling ( 897 int argc, 898 char **argv, 899 unsigned32 command_arg, 900 boolean verbose ) 853 901 { 854 902 rtems_status_code sc; … … 897 945 898 946 static void 899 rtems_capture_cli_watch_floor (int argc, char **argv) 947 rtems_capture_cli_watch_floor ( 948 int argc, 949 char **argv, 950 unsigned32 command_arg, 951 boolean verbose ) 900 952 { 901 953 rtems_status_code sc; … … 944 996 945 997 static void 946 rtems_capture_cli_trigger_set (int argc, char **argv) 998 rtems_capture_cli_trigger_set ( 999 int argc, 1000 char **argv, 1001 unsigned32 command_arg, 1002 boolean verbose ) 947 1003 { 948 1004 rtems_status_code sc; … … 1096 1152 1097 1153 static void 1098 rtems_capture_cli_trace_records (int argc, char **argv) 1154 rtems_capture_cli_trace_records ( 1155 int argc, 1156 char **argv, 1157 unsigned32 command_arg, 1158 boolean verbose ) 1099 1159 { 1100 1160 rtems_status_code sc; … … 1217 1277 1218 1278 static void 1219 rtems_capture_cli_flush (int argc, char **argv) 1279 rtems_capture_cli_flush ( 1280 int argc, 1281 char **argv, 1282 unsigned32 command_arg, 1283 boolean verbose ) 1220 1284 { 1221 1285 rtems_status_code sc; … … 1251 1315 "usage: copen [-i] size\n", 1252 1316 0, 1253 (void*)rtems_capture_cli_open,1317 rtems_capture_cli_open, 1254 1318 0, 1255 1319 0 … … 1259 1323 "usage: cclose\n", 1260 1324 0, 1261 (void*)rtems_capture_cli_close,1325 rtems_capture_cli_close, 1262 1326 0, 1263 1327 0 … … 1267 1331 "usage: cenable\n", 1268 1332 0, 1269 (void*)rtems_capture_cli_enable,1333 rtems_capture_cli_enable, 1270 1334 0, 1271 1335 0 … … 1275 1339 "usage: cdisable\n", 1276 1340 0, 1277 (void*)rtems_capture_cli_disable,1341 rtems_capture_cli_disable, 1278 1342 0, 1279 1343 0 … … 1283 1347 "usage: ctlist \n", 1284 1348 0, 1285 (void*)rtems_capture_cli_task_list,1349 rtems_capture_cli_task_list, 1286 1350 0, 1287 1351 0 … … 1291 1355 "usage: ctload \n", 1292 1356 0, 1293 (void*)rtems_capture_cli_task_load,1357 rtems_capture_cli_task_load, 1294 1358 0, 1295 1359 0 … … 1299 1363 "usage: cwlist\n", 1300 1364 0, 1301 (void*)rtems_capture_cli_watch_list,1365 rtems_capture_cli_watch_list, 1302 1366 0, 1303 1367 0 … … 1307 1371 "usage: cwadd [task name] [id]\n", 1308 1372 0, 1309 (void*)rtems_capture_cli_watch_add,1373 rtems_capture_cli_watch_add, 1310 1374 0, 1311 1375 0 … … 1315 1379 "usage: cwdel [task name] [id]\n", 1316 1380 0, 1317 (void*)rtems_capture_cli_watch_del,1381 rtems_capture_cli_watch_del, 1318 1382 0, 1319 1383 0 … … 1323 1387 "usage: cwctl [task name] [id] on/off\n", 1324 1388 0, 1325 (void*)rtems_capture_cli_watch_control,1389 rtems_capture_cli_watch_control, 1326 1390 0, 1327 1391 0 … … 1331 1395 "usage: cwglob on/off\n", 1332 1396 0, 1333 (void*)rtems_capture_cli_watch_global,1397 rtems_capture_cli_watch_global, 1334 1398 0, 1335 1399 0 … … 1339 1403 "usage: cwceil priority\n", 1340 1404 0, 1341 (void*)rtems_capture_cli_watch_ceiling,1405 rtems_capture_cli_watch_ceiling, 1342 1406 0, 1343 1407 0 … … 1347 1411 "usage: cwfloor priority\n", 1348 1412 0, 1349 (void*)rtems_capture_cli_watch_floor,1413 rtems_capture_cli_watch_floor, 1350 1414 0, 1351 1415 0 … … 1355 1419 "usage: ctrace [-c] [-r records]\n", 1356 1420 0, 1357 (void*)rtems_capture_cli_trace_records,1421 rtems_capture_cli_trace_records, 1358 1422 0, 1359 1423 0 … … 1363 1427 "usage: ctrig type [from name] [from id] [to name] [to id]\n", 1364 1428 0, 1365 (void*)rtems_capture_cli_trigger_set,1429 rtems_capture_cli_trigger_set, 1366 1430 0, 1367 1431 0 … … 1371 1435 "usage: cflush [-n]\n", 1372 1436 0, 1373 (void*)rtems_capture_cli_flush,1437 rtems_capture_cli_flush, 1374 1438 0, 1375 1439 0
Note: See TracChangeset
for help on using the changeset viewer.