PRTDBG
PRTDBG(("append_pa(\"%s\") = \"%s\"\n", arg, pbuf));
PRTDBG(("find_section(0x%x, \"%s\")\n", p_config_file, section_id));
PRTDBG(("get_value(\"%s\") = \"%s\"\n", arg, p + 1));
PRTDBG(("search interface\n"));
PRTDBG(("failed to open '/dev/wifi'\n"));
PRTDBG(("interface %s doesn't exist\n", dp->d_name));
PRTDBG(("interface %s is the first found interface\n",
PRTDBG(("failed to find available wireless interface\n"));
PRTDBG(("open_dev(\"%s\")\n", devname));
PRTDBG(("call_ioctl_gs(%d, 0x%x, 0x%x, 0x%x)\n",
PRTDBG(("del_prefer(0x%x, \"%s\")\n", p_config_file, prefer));
PRTDBG(("del_section(0x%x, \"%s\")\n", p_config_file, section_id));
PRTDBG(("del_section: %d section(s) in config file\n",
PRTDBG(("set_prefer(0x%x, \"%s\", %d)\n", p_config_file, prefer, rank));
PRTDBG(("set_prefer: %d Profiles in prefer list\n", plist->ael_argc));
PRTDBG(("set_prefer: %d Profiles in prefer list\n", plist->ael_argc));
PRTDBG(("add_to_history(0x%x, %d, 0x%x)\n", p_config_file, argc, argv));
PRTDBG(("do_print_support_params(\"%d\")\n", fd));
PRTDBG(("check_authority()\n"));
PRTDBG(("essid_of_profile: profile = %s\n", profile));
PRTDBG(("essid_of_profile: essid = %s\n",
PRTDBG(("heuristic_load: enter\n"));
PRTDBG(("heuristic_load: %s is selected\n",
PRTDBG(("do_autoconf(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_startconf(%d, 0x%x)\n", argc, argv));
PRTDBG(("find_active_profile: %d\n", fd));
PRTDBG(("do_loadpf(%d, %x)\n", argc, argv));
PRTDBG(("connect counting:......%d\n", timeout));
PRTDBG(("do_printpf(%d, %x)\n", argc, argv));
PRTDBG(("find_ae: arg= NULL or plist=NULL\n"));
PRTDBG(("find_ae(0x%x, \"%s\")\n", plist, arg));
PRTDBG(("find_ae: param = \"%s\"\n", param));
PRTDBG(("find_ae: param = \"%s\"\n", param));
PRTDBG(("update_aelist(0x%x, \"%s\")\n", plist, arg));
PRTDBG(("do_deletepf(%d, \"%s\")\n", argc, argv));
PRTDBG(("do_history(%d, 0x%x)\n", argc, argv));
PRTDBG(("no history section\n"));
PRTDBG(("do_lsprefer(%d, 0x%x)\n", argc, argv));
PRTDBG(("no preference section\n"));
PRTDBG(("do_rmprefer(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_setprefer(%d, 0x%x)\n", argc, argv));
PRTDBG(("get_valid_wepkey()\n"));
PRTDBG(("do_set_wepkey(%d, \"%s\")\n", fd, pbuf));
PRTDBG(("do_set_wepkey: error pbuf size\n"));
PRTDBG(("do_wepkey(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_setprofwepkey(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_wlanlist(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_showstatus(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_restoredef(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_disconnect(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_set_essid(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_bsstype(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_createibss(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_channel(%d, \"%s\")\n", fd, arg));
PRTDBG(("channel=%d\n", phy_conf.wl_phy_dsss_conf.wl_dsss_channel));
PRTDBG(("is_rates_support(%d, %d, 0x%x)\n", fd, num, rates));
PRTDBG(("rates[%d] = %d\n", i, rates[i]));
PRTDBG(("supported rates[%d]=%d\n", j, value));
PRTDBG(("get_rates: empty rates string\n"));
PRTDBG(("get_rates(\"%s\", 0x%x)\n", arg, len));
PRTDBG(("rates[0]: %s\n", token));
PRTDBG(("rates[%d]: %s\n", i, token));
PRTDBG(("do_set_rates(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_powermode(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_authmode(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_encryption(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_wepkeyid(%d, \"%s\")\n", fd, arg));
PRTDBG(("do_set_radioon(%d, \"%s\")\n", fd, arg));
PRTDBG(("print_gbuf(%d)\n", index));
PRTDBG(("do_get_bssid(%d)\n", fd));
PRTDBG(("do_get_essid(%d)\n", fd));
PRTDBG(("do_get_bsstype(%d)\n", fd));
PRTDBG(("do_get_createibss(%d)\n", fd));
PRTDBG(("do_get_channel(%d)\n", fd));
PRTDBG(("do_get_wlanlist(%d)\n", fd));
PRTDBG(("do_get_linkstatus(%d)\n", fd));
PRTDBG(("do_get_rates(%d)\n", fd));
PRTDBG(("do_get_powermode(%d)\n", fd));
PRTDBG(("do_get_authmode(%d)\n", fd));
PRTDBG(("do_get_encryption(%d)\n", fd));
PRTDBG(("do_get_wepkeyid(%d)\n", fd));
PRTDBG(("do_get_signal(%d)\n", fd));
PRTDBG(("do_get_radioon(%d)\n", fd));
PRTDBG(("do_createprofile(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_createprofile: profile_name = %s\n", pbuf));
PRTDBG(("do_setprofparam(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_getprofparam(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_set(%d, 0x%x)\n", argc, argv));
PRTDBG(("do_set: param = \"%s\", value = \"%s\"\n",
PRTDBG(("do_get(%d, 0x%x)\n", argc, argv));
PRTDBG(("main(%d, 0x%x)\n", argc, argv));
PRTDBG(("uid=%d\n", getuid()));
PRTDBG(("euid=%d\n", geteuid()));
PRTDBG(("main: priviledge init error\n"));
PRTDBG(("%d\t\t\"%s\"\n", i, argv[i]));
PRTDBG(("Command %s failed\n", argv[0]));
PRTDBG(("new_ae(0x%x, \"%s\")\n", ael, arg));
PRTDBG(("new_ael(%d) = 0x%x\n", type, plist));
PRTDBG(("new_config_file() = 0x%x\n", p_config_file));
PRTDBG(("new_section(0x%x, 0x%x, \"%s\")\n", p_config_file, p_list,
PRTDBG(("destory_config(0x%x)\n", p_config_file));
PRTDBG(("parse_file(\"%s\")=0x%x\n", pfile, p_config_file));
PRTDBG(("aeltoargv(%x)\n", ael));
PRTDBG(("aeltoargv(0x%x) = 0x%x\n\n", ael, argv));
PRTDBG(("fprint_config_file(0x%x, \"%s\")\n", p_config_file,
PRTDBG(("fprint_config_file: section_id=%s\n",