Fix misuse of BTADDR instead of BDADDR

This commit is contained in:
Marcel Holtmann 2009-03-29 12:14:25 -07:00
parent a8eb557ae7
commit c6e7e1139d

View File

@ -1018,12 +1018,12 @@ static gboolean input_cb(GIOChannel *gin, GIOCondition condition, gpointer data)
DBG("rate %d", u->rate);
}
IF_CMD(btaddr) {
IF_CMD(bdaddr) {
if (u->address)
free(u->address);
if (sscanf(line, "%*s %as", &u->address) != 1)
DBG("set with btaddr BTADDR");
DBG("btaddr %s", u->address);
DBG("set with bdaddr BDADDR");
DBG("bdaddr %s", u->address);
}
IF_CMD(profile) {
@ -1057,7 +1057,7 @@ static gboolean input_cb(GIOChannel *gin, GIOCondition condition, gpointer data)
static void show_usage(char* prgname)
{
printf("%s: ipctest [--interactive] BTADDR\n", basename(prgname));
printf("%s: ipctest [--interactive] BDADDR\n", basename(prgname));
}
static void sig_term(int sig)