Fixed the custom service UUID parsing 54/213554/4 accepted/tizen/unified/20190918.010258 submit/tizen/20190916.233704
authorAmit Purwar <amit.purwar@samsung.com>
Fri, 6 Sep 2019 13:31:00 +0000 (19:01 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 16 Sep 2019 23:35:56 +0000 (08:35 +0900)
Change-Id: I0ed330d820e09b740d2125963d81a6c92c553fca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-oal/bluez_hal/src/bt-hal-utils.c

index 588af9f..16cbd49 100644 (file)
@@ -56,9 +56,10 @@ const char *bt_uuid_t2str(const uint8_t *uuid, char *buf)
                        buf[i * 2 + shift] = '-';
                        shift++;
                }
-               snprintf(buf + i * 2 + shift, (HAL_UUID_LEN -(i * 2 + shift)), "%02x", uuid[i]);
+               snprintf(buf + i * 2 + shift, (MAX_UUID_STR_LEN -(i * 2 + shift)), "%02x", uuid[i]);
        }
 
+       ERR("uuid %s", buf);
        return buf;
 }