clatd: embed CLATD_VERSION directly in log string
Allows for: adbz shell strings /apex/com.android.tethering/bin/for-system/clatd | grep 'clat version' to print: Starting clat version 1.7 on %s plat=%s v4=%s v6=%s instead of: Starting clat version %s on %s plat=%s v4=%s v6=%s (which is more useful for rapid development) Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I4ba7458287837cb014950927f3c8ff18dac268fc
This commit is contained in:
parent
ac1af41d42
commit
1961f673d1
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ int main(int argc, char **argv) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
logmsg(ANDROID_LOG_INFO, "Starting clat version %s on %s plat=%s v4=%s v6=%s", CLATD_VERSION,
|
||||
logmsg(ANDROID_LOG_INFO, "Starting clat version " CLATD_VERSION " on %s plat=%s v4=%s v6=%s",
|
||||
uplink_interface, plat_prefix ? plat_prefix : "(none)", v4_addr ? v4_addr : "(none)",
|
||||
v6_addr ? v6_addr : "(none)");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue