Skip to content
Snippets Groups Projects
Commit 40f6e52c authored by Sören Tempel's avatar Sören Tempel
Browse files
parent ac94a85a
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dtc pkgname=dtc
pkgver=1.4.7 pkgver=1.5.0
pkgrel=0 pkgrel=0
pkgdesc="Device Tree Compiler" pkgdesc="Device Tree Compiler"
url="http://devicetree.org/Device_Tree_Compiler" url="http://devicetree.org/Device_Tree_Compiler"
...@@ -12,7 +12,6 @@ makedepends="$depends_dev bison flex" ...@@ -12,7 +12,6 @@ makedepends="$depends_dev bison flex"
install="" install=""
subpackages="$pkgname-dev libfdt" subpackages="$pkgname-dev libfdt"
source="https://kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz source="https://kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz
use-tx-as-the-type-specifier-instead-of-zx.patch
" "
builddir="$srcdir/dtc-$pkgver" builddir="$srcdir/dtc-$pkgver"
...@@ -37,5 +36,4 @@ libfdt() { ...@@ -37,5 +36,4 @@ libfdt() {
mv "$pkgdir"/usr/lib/libfdt* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libfdt* "$subpkgdir"/usr/lib/
} }
sha512sums="01e0c88aee154d8ce8a5b84a299c98d12df9698e5eff572409e5e912236028532309fd21ca6a146dffef859c665d476bbbe13c371c621c1dee4abe546e5e6ebf dtc-1.4.7.tar.xz sha512sums="fd1e692a1b7bf7987f921ad17d9be6719f7b3aa7915873b45fa86f4ecb1398a0a62cdf53c1fddf98a0f7fed9bf34a79f684018bd01a2b5e88746b50879bf7102 dtc-1.5.0.tar.xz"
6b03522fed030a6b2411bd12d1878667fec9ae9bcbfe60f7d5f82468bcbc2eab5956ae758086b8f2d5611e7a6584525ab33702df6f721b218ddb3205968da543 use-tx-as-the-type-specifier-instead-of-zx.patch"
From 46ed9702a0005da87edd0cc3d34dbe24d1526784 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
Date: Thu, 6 Jun 2013 17:01:39 +0200
Subject: [PATCH] use tx as the type specifier instead of zx
A couple of printf() commands use "zx" as a type specifier for printing
a difference of 2 pointers. "z" means a size_t, but using "t" which is
ptrdiff_t is correct. The issue was found on s390 (32-bit) where size_t
is defined as "unsigned long" as opposed to the usual "unsigned int".
Rebased-by: Breno Leitao <breno.leitao@gmail.com>
---
diff --git a/fdtdump.c b/fdtdump.c
index 4eaade9..4dcac19 100644
--- a/fdtdump.c
+++ b/fdtdump.c
@@ -98,7 +98,7 @@ static void dump_blob(void *blob, bool debug)
p = p_struct;
while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
- dumpf("%04zx: tag: 0x%08"PRIx32" (%s)\n",
+ dumpf("%04tx: tag: 0x%08"PRIx32" (%s)\n",
(uintptr_t)p - blob_off - 4, tag, tagname(tag));
if (tag == FDT_BEGIN_NODE) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment