mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
makedevs: Make the mode number readable in debug messages
(From OE-Core rev: 56f4adfc37d44e9626a5d157863f4b760bb516ec) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4844884d13
commit
c8bfe84eef
@@ -108,7 +108,7 @@ static void add_new_directory(char *name, char *path,
|
||||
{
|
||||
mkdir(path, mode);
|
||||
chown(path, uid, gid);
|
||||
// printf("Directory: %s %s UID: %ld GID %ld MODE: %ld\n", path, name, uid, gid, mode);
|
||||
// printf("Directory: %s %s UID: %ld GID %ld MODE: %04lo\n", path, name, uid, gid, mode);
|
||||
}
|
||||
|
||||
static void add_new_device(char *name, char *path, unsigned long uid,
|
||||
@@ -132,7 +132,7 @@ static void add_new_device(char *name, char *path, unsigned long uid,
|
||||
|
||||
mknod(path, mode, rdev);
|
||||
chown(path, uid, gid);
|
||||
// printf("Device: %s %s UID: %ld GID: %ld MODE: %ld MAJOR: %d MINOR: %d\n",
|
||||
// printf("Device: %s %s UID: %ld GID: %ld MODE: %04lo MAJOR: %d MINOR: %d\n",
|
||||
// path, name, uid, gid, mode, (short)(rdev >> 8), (short)(rdev & 0xff));
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ static void add_new_file(char *name, char *path, unsigned long uid,
|
||||
}
|
||||
chmod(path, mode);
|
||||
chown(path, uid, gid);
|
||||
// printf("File: %s %s UID: %ld GID: %ld MODE: %ld\n",
|
||||
// printf("File: %s %s UID: %ld GID: %ld MODE: %04lo\n",
|
||||
// path, name, gid, uid, mode);
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ static void add_new_fifo(char *name, char *path, unsigned long uid,
|
||||
if (mknod(path, mode, 0))
|
||||
error_msg_and_die("%s: file can not be created with mknod!", path);
|
||||
chown(path, uid, gid);
|
||||
// printf("File: %s %s UID: %ld GID: %ld MODE: %ld\n",
|
||||
// printf("File: %s %s UID: %ld GID: %ld MODE: %04lo\n",
|
||||
// path, name, gid, uid, mode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user