Lines Matching refs:fprintf

347 		fprintf(stderr, "Could not determine size of %s: %s\n",  in file_size()
379 fprintf(stderr, in dhd_option()
420 fprintf(stderr, "%s\n\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage()
422 fprintf(stderr, "%s\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage()
447 fprintf(stderr, "Failed to allocate buffer of %d bytes\n", len); in dhd_list()
503 fprintf(stderr, in dhd_usage()
507 fprintf(stderr, "\n"); in dhd_usage()
508 fprintf(stderr, " -h this message\n"); in dhd_usage()
509 fprintf(stderr, " -a, -i adapter name or number\n"); in dhd_usage()
510 fprintf(stderr, " -d display values as signed integer\n"); in dhd_usage()
511 fprintf(stderr, " -u display values as unsigned integer\n"); in dhd_usage()
512 fprintf(stderr, " -x display values as hexdecimal\n"); in dhd_usage()
513 fprintf(stderr, "\n"); in dhd_usage()
531 fprintf(stderr, "Version mismatch, please upgrade\n"); in dhd_check()
608 fprintf(stderr, "pktgen version mismatch (module %d app %d)\n", in dhd_pktgen()
623 fprintf(stderr, "pktgen options error\n"); in dhd_pktgen()
630 fprintf(stderr, "invalid integer %s\n", opts.valstr); in dhd_pktgen()
670 fprintf(stderr, "unrecognized dir mode %s\n", in dhd_pktgen()
677 fprintf(stderr, "option parsing error (key %s valstr %s)\n", in dhd_pktgen()
685 fprintf(stderr, "min/max error (%d/%d)\n", pktgen.minlen, pktgen.maxlen); in dhd_pktgen()
967 fprintf(stderr, "membytes options error\n"); in dhd_membytes()
982 fprintf(stderr, "membytes command error\n"); in dhd_membytes()
993 fprintf(stderr, "required args: address size [<data>]\n"); in dhd_membytes()
998 fprintf(stderr, "missing <data> required by -h\n"); in dhd_membytes()
1002 fprintf(stderr, "can't have <data> arg with -r\n"); in dhd_membytes()
1009 fprintf(stderr, "Bad arg: %s\n", argv[0]); in dhd_membytes()
1016 fprintf(stderr, "Bad value: %s\n", argv[1]); in dhd_membytes()
1022 fprintf(stderr, "Can only write starting at long-aligned addresses.\n"); in dhd_membytes()
1054 fprintf(stderr, "Hex (-h) must consist of whole bytes\n"); in dhd_membytes()
1065 fprintf(stderr, "invalid hex digit %c\n", in dhd_membytes()
1126 fprintf(stderr, "invalid number %s\n", argv[1]); in dhd_idletime()
1131 fprintf(stderr, "invalid value %s\n", argv[1]); in dhd_idletime()
1175 fprintf(stderr, "invalid number %s\n", argv[1]); in dhd_idleclock()
1238 fprintf(stderr, "Command srdump doesn't take args\n"); in dhd_sprom()
1251 fprintf(stderr, "Internal error: unaligned word buffer\n"); in dhd_sprom()
1256 fprintf(stderr, "Unimplemented sprom command: %s\n", argv[0]); in dhd_sprom()
1276 fprintf(stderr, "Bad file size\n"); in dhd_sprom()
1286 fprintf(stderr, "Internal error: unaligned word buffer\n"); in dhd_sprom()
1291 fprintf(stderr, "Could not open %s: %s\n", in dhd_sprom()
1297 fprintf(stderr, "Could not read %d bytes from %s\n", in dhd_sprom()
1307 fprintf(stderr, "CRC check failed: 0x%02x, should be 0x%02x.\n", in dhd_sprom()
1317 fprintf(stderr, "offset %s is not an integer\n", *argv); in dhd_sprom()
1327 fprintf(stderr, "Internal error: unaligned word buffer\n"); in dhd_sprom()
1334 fprintf(stderr, "value %s is not an integer\n", *argv); in dhd_sprom()
1338 fprintf(stderr, "max of %d words\n", SPROM_WORDS); in dhd_sprom()
1394 fprintf(stderr, "Cannot open NVRAM file %s: %s\n", in read_vars()
1427 fprintf(stderr, "Invalid line %d in NVRAM file %s\n", line_no, fname); in read_vars()
1433 fprintf(stderr, "NVRAM file %s too long\n", fname); in read_vars()
1531 fprintf(stderr, "%s: failed reading %d membytes from 0x%08x\n", in dhd_verify_file_bytes()
1540 fprintf(stderr, " 0x%x: exp[0x%02X] != got[0x%02X]\n", in dhd_verify_file_bytes()
1579 fprintf(stderr, "%s: error reading file\n", __FUNCTION__); in dhd_load_file_bytes()
1599 fprintf(stderr, "%s: error %d on writing %d membytes at 0x%08x\n", in dhd_load_file_bytes()
1608 fprintf(stderr, "%s: verify failed %d membytes " in dhd_load_file_bytes()
1687 fprintf(stderr, "%s: error obtaining ramstart\n", __FUNCTION__); in dhd_get_ramstart()
1740 fprintf(stderr, "download options error\n"); in dhd_download()
1748 fprintf(stderr, "invalid address %s\n", opts.valstr); in dhd_download()
1755 fprintf(stderr, "extra positional arg, %s\n", in dhd_download()
1772 fprintf(stderr, "unrecognized option %s\n", opts.valstr); in dhd_download()
1777 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_download()
1785 fprintf(stderr, "filename required\n"); in dhd_download()
1797 fprintf(stderr, "%s: unable to open %s: %s\n", in dhd_download()
1828 fprintf(stderr, "%s: error obtaining bustype\n", __FUNCTION__); in dhd_download()
1840 fprintf(stderr, "%s: error obtaining ramsize\n", __FUNCTION__); in dhd_download()
1852 fprintf(stderr, "%s: failed to put dongle in download mode\n", in dhd_download()
1864 fprintf(stderr, "%s: ftell failed.\n", __FUNCTION__); in dhd_download()
1879 fprintf(stderr, "%s: error loading the ramimage at addr 0x%x\n", in dhd_download()
1888 fprintf(stderr, "%s: ftell failed.\n", __FUNCTION__); in dhd_download()
1917 fprintf(stderr, "%s: error %d on delivering vars\n", in dhd_download()
1927 fprintf(stderr, "%s: failed to take dongle out of download mode\n", in dhd_download()
1932 fprintf(stderr, "%s: CPU is not in RUNNABLE State\n", in dhd_download()
1935 fprintf(stderr, "%s: Error in setting CPU to RUN mode.\n", in dhd_download()
1981 fprintf(stderr, "download options error\n"); in dhd_dldn()
1989 fprintf(stderr, "extra positional arg, %s\n", in dhd_dldn()
1997 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_dldn()
2011 fprintf(stderr, "filename required\n"); in dhd_dldn()
2025 fprintf(stderr, "%s: file %s too large (%d > %d)\n", in dhd_dldn()
2033 fprintf(stderr, "%s: unable to open %s: %s\n", in dhd_dldn()
2044 fprintf(stderr, "%s: error reading file %s\n", __FUNCTION__, fname); in dhd_dldn()
2051 fprintf(stderr, "%s: error %d on writing %d membytes at 0x%08x\n", in dhd_dldn()
2060 fprintf(stderr, "%s: error reading file %s\n", __FUNCTION__, fname); in dhd_dldn()
2110 fprintf(stderr, "upload options error\n"); in dhd_upload()
2118 fprintf(stderr, "invalid address %s\n", opts.valstr); in dhd_upload()
2129 fprintf(stderr, "upload options error\n"); in dhd_upload()
2134 fprintf(stderr, "unrecognized option %s\n", opts.valstr); in dhd_upload()
2138 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_upload()
2146 fprintf(stderr, "filename required\n"); in dhd_upload()
2152 fprintf(stderr, "%s: error obtaining ramsize\n", __FUNCTION__); in dhd_upload()
2161 fprintf(stderr, "%s: Could not open %s: %s\n", in dhd_upload()
2182 fprintf(stderr, "%s: failed reading %d membytes from 0x%08x\n", in dhd_upload()
2188 fprintf(stderr, "%s: error writing to file %s\n", __FUNCTION__, fname); in dhd_upload()
2225 fprintf(stderr, "Error: cannot find pointer to debug_info\n"); in dhd_get_debug_info()
2240 fprintf(stderr, "Error: Debug info pointer is zero\n"); in dhd_get_debug_info()
2249 fprintf(stderr, "%s: failed reading %lu membytes from 0x%08lx\n", in dhd_get_debug_info()
2259 fprintf(stderr, "Error: Invalid debug info area\n"); in dhd_get_debug_info()
2300 fprintf(stderr, "dump options error\n"); in dhd_coredump()
2310 fprintf(stderr, "dump options error\n"); in dhd_coredump()
2315 fprintf(stderr, "unrecognized option %s\n", opts.valstr); in dhd_coredump()
2319 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_coredump()
2327 fprintf(stderr, "filename required\n"); in dhd_coredump()
2350 fprintf(stderr, "%s: failed reading %lu membytes from 0x%08lx\n", in dhd_coredump()
2367 fprintf(stderr, "%s: Could not open %s: %s\n", in dhd_coredump()
2374 fprintf(fp, "Dump starts for version %s FWID 01-%x\n", debugInfo.epivers, debugInfo.fwid); in dhd_coredump()
2375 fprintf(fp, "XXXXXXXXXXXXXXXXXXXX"); in dhd_coredump()
2376 fprintf(fp, "%8.8lX", (long unsigned) sizeof(debugInfo)); in dhd_coredump()
2378 fprintf(stderr, "%s: error writing to file %s\n", __FUNCTION__, fname); in dhd_coredump()
2386 fprintf(stderr, "%s: error writing to file %s\n", __FUNCTION__, fname); in dhd_coredump()
2393 fprintf(fp, "%8.8X", size); in dhd_coredump()
2404 fprintf(stderr, "%s: failed reading %d membytes from 0x%08x\n", in dhd_coredump()
2410 fprintf(stderr, "%s: error writing to file %s\n", __FUNCTION__, fname); in dhd_coredump()
2454 fprintf(stderr, "dump options error\n"); in dhd_consoledump()
2461 fprintf(stderr, "unrecognized option %s\n", opts.valstr); in dhd_consoledump()
2465 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_consoledump()
2475 fprintf(stderr, "%s: console not found\n", __FUNCTION__); in dhd_consoledump()
2485 fprintf(stderr, "%s: failed reading %lu membytes from 0x%08lx\n", in dhd_consoledump()
2491 fprintf(stderr, "%s: console not initialised\n", __FUNCTION__); in dhd_consoledump()
2500 fprintf(stderr, "%s: console buffer not initialised\n", __FUNCTION__); in dhd_consoledump()
2513 fprintf(stderr, "%s: failed reading %d membytes from 0x%08x\n", in dhd_consoledump()
2708 fprintf(stderr, "msg values may be a list of numbers or names from the following set.\n"); in dhd_do_msglevel()
2709 fprintf(stderr, "Use a + or - prefix to make an incremental change."); in dhd_do_msglevel()
2713 fprintf(stderr, "\n0x%04x %s", val, dbg_msg[i].string); in dhd_do_msglevel()
2715 fprintf(stderr, ", %s", dbg_msg[i].string); in dhd_do_msglevel()
2718 fprintf(stderr, "\n"); in dhd_do_msglevel()
2891 fprintf(stderr, "%s: \nError getting the last error\n", dhdu_av0); in dhd_printlasterror()
2893 fprintf(stderr, "%s: %s\n", dhdu_av0, buf); in dhd_printlasterror()