Show version code when report client

This commit is contained in:
topjohnwu 2017-12-18 16:00:44 +08:00
parent d0567d29d2
commit 5fc2058336

View File

@ -69,7 +69,7 @@ int main(int argc, char *argv[]) {
if (strcmp(basename(argv[0]), "magisk") == 0) { if (strcmp(basename(argv[0]), "magisk") == 0) {
if (argc < 2) usage(); if (argc < 2) usage();
if (strcmp(argv[1], "-c") == 0) { if (strcmp(argv[1], "-c") == 0) {
printf("%s\n", MAGISK_VER_STR); printf("%s (%d)\n", MAGISK_VER_STR, MAGISK_VER_CODE);
return 0; return 0;
} else if (strcmp(argv[1], "-v") == 0) { } else if (strcmp(argv[1], "-v") == 0) {
int fd = connect_daemon(); int fd = connect_daemon();