lib/bluetooth.c::batostr() is returning the bdaddr reversed, fix this and put more arguments on the same line to look more like ba2str(). --- lib/bluetooth.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/bluetooth.c b/lib/bluetooth.c index db7bbe1..8509620 100644 --- a/lib/bluetooth.c +++ b/lib/bluetooth.c @@ -55,8 +55,7 @@ char *batostr(const bdaddr_t *ba) return NULL; sprintf(str, "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X", - ba->b[0], ba->b[1], ba->b[2], - ba->b[3], ba->b[4], ba->b[5]); + ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]); return str; } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html