summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorFrazer Leslie Clews <frazer.clews@codethink.co.uk>2019-10-28 17:14:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-31 16:09:34 +0000
commit5c33b6fd8a7b1d8640254fd924939f40f071394d (patch)
treef77dfecff795250231ce6497a82a404e7092d977 /meta
parentf3c32efa9baf4ea9e62f885db9995da8c3afd0c5 (diff)
downloadpoky-5c33b6fd8a7b1d8640254fd924939f40f071394d.tar.gz
makedevs: fix format strings in makedevs.c in print statements
(From OE-Core rev: 5363fe01581e045ddd8e21934781b10cd3521365) Signed-off-by: Frazer Leslie Clews <frazer.clews@codethink.co.uk> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/makedevs/makedevs/makedevs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs/makedevs.c b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
index cba7681414..01e564afee 100644
--- a/meta/recipes-devtools/makedevs/makedevs/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
@@ -230,7 +230,7 @@ static void add_new_directory(char *name, char *path,
230 unsigned long uid, unsigned long gid, unsigned long mode) 230 unsigned long uid, unsigned long gid, unsigned long mode)
231{ 231{
232 if (trace) 232 if (trace)
233 fprintf(stderr, "Directory: %s %s UID: %ld GID %ld MODE: %04lo", path, name, uid, gid, mode); 233 fprintf(stderr, "Directory: %s %s UID: %lu GID %lu MODE: %04lo", path, name, uid, gid, mode);
234 234
235 if (mkdir(path, mode) < 0) { 235 if (mkdir(path, mode) < 0) {
236 if (EEXIST == errno) { 236 if (EEXIST == errno) {
@@ -251,7 +251,7 @@ static void add_new_device(char *name, char *path, unsigned long uid,
251 struct stat sb; 251 struct stat sb;
252 252
253 if (trace) { 253 if (trace) {
254 fprintf(stderr, "Device: %s %s UID: %ld GID: %ld MODE: %04lo MAJOR: %d MINOR: %d", 254 fprintf(stderr, "Device: %s %s UID: %lu GID: %lu MODE: %04lo MAJOR: %d MINOR: %d",
255 path, name, uid, gid, mode, (short)(rdev >> 8), (short)(rdev & 0xff)); 255 path, name, uid, gid, mode, (short)(rdev >> 8), (short)(rdev & 0xff));
256 } 256 }
257 257
@@ -292,7 +292,7 @@ static void add_new_file(char *name, char *path, unsigned long uid,
292 unsigned long gid, unsigned long mode) 292 unsigned long gid, unsigned long mode)
293{ 293{
294 if (trace) { 294 if (trace) {
295 fprintf(stderr, "File: %s %s UID: %ld GID: %ld MODE: %04lo\n", 295 fprintf(stderr, "File: %s %s UID: %lu GID: %lu MODE: %04lo\n",
296 path, name, gid, uid, mode); 296 path, name, gid, uid, mode);
297 } 297 }
298 298
@@ -311,7 +311,7 @@ static void add_new_fifo(char *name, char *path, unsigned long uid,
311 unsigned long gid, unsigned long mode) 311 unsigned long gid, unsigned long mode)
312{ 312{
313 if (trace) { 313 if (trace) {
314 printf("Fifo: %s %s UID: %ld GID: %ld MODE: %04lo\n", 314 printf("Fifo: %s %s UID: %lu GID: %lu MODE: %04lo\n",
315 path, name, gid, uid, mode); 315 path, name, gid, uid, mode);
316 } 316 }
317 317