commit | 8a98c4c38a1b6efd9cdd374928d40c420bd62877 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon May 18 18:41:23 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Mon May 18 18:43:28 2015 -0700 |
tree | 7b82978e79e60a5f79eb81a91e6e9aeadb536e9d | |
parent | 0edd4c558a8b6a9ca4f107aa1ddedfa238035390 [diff] |
klog: don't unconditionally call mknod() If /dev/kmsg already exists, it's unnecessary for klog_init() to create it's own copy. This avoids needing to grant the mknod permission to everyone who uses kmsg. Typically the only time /dev/kmsg doesn't exist is before ueventd starts. Bug: 21242418 Change-Id: I0c88d80feca6899fcdbc8c9f2f99448ee0a3422d