diff options
| -rw-r--r-- | meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Remove-newline-from-format-line.patch | 32 | ||||
| -rw-r--r-- | meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Remove-newline-from-format-line.patch b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Remove-newline-from-format-line.patch new file mode 100644 index 0000000000..1453b75d56 --- /dev/null +++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/0001-Remove-newline-from-format-line.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From a36afac485745cf980fba1809526f2025cb4d101 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 23 Apr 2017 00:16:45 -0700 | ||
| 4 | Subject: [PATCH] Remove newline from format line | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | |||
| 8 | error: '__builtin___snprintf_chk' output truncated before the last format character [-Werror=format-truncation=] | ||
| 9 | "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", | ||
| 10 | ^ | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | addrdb/addrdb.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/addrdb/addrdb.c b/addrdb/addrdb.c | ||
| 18 | index 4bb7f79..05d53f3 100644 | ||
| 19 | --- a/addrdb/addrdb.c | ||
| 20 | +++ b/addrdb/addrdb.c | ||
| 21 | @@ -178,7 +178,7 @@ int addrdb_dump_leases(const char *lease_file) | ||
| 22 | continue; | ||
| 23 | } | ||
| 24 | snprintf(hwaddr_buf, sizeof(hwaddr_buf), | ||
| 25 | - "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", | ||
| 26 | + "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", | ||
| 27 | lease->hwaddr[0], lease->hwaddr[1], | ||
| 28 | lease->hwaddr[2], lease->hwaddr[3], | ||
| 29 | lease->hwaddr[4], lease->hwaddr[5], | ||
| 30 | -- | ||
| 31 | 2.12.2 | ||
| 32 | |||
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb index 0dcc6a785d..be73f8ae4b 100644 --- a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb +++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "git://git.code.sf.net/p/linux-zigbee/linux-zigbee \ | |||
| 13 | file://0001-Fix-build-errors-with-clang.patch \ | 13 | file://0001-Fix-build-errors-with-clang.patch \ |
| 14 | file://0001-addrdb-coord-config-parse.y-add-missing-time.h-inclu.patch \ | 14 | file://0001-addrdb-coord-config-parse.y-add-missing-time.h-inclu.patch \ |
| 15 | file://0001-src-iz.c-Undef-dprintf-before-redefining.patch \ | 15 | file://0001-src-iz.c-Undef-dprintf-before-redefining.patch \ |
| 16 | file://0001-Remove-newline-from-format-line.patch \ | ||
| 16 | " | 17 | " |
| 17 | SRCREV = "38f42dbfce9e13629263db3bd3b81f14c69bb733" | 18 | SRCREV = "38f42dbfce9e13629263db3bd3b81f14c69bb733" |
| 18 | 19 | ||
