Prefer the app-developer targetSdkVersion over "api level".
Only really matters in the errors shown to app developers, but we may as well be consistent throughout, especially since we almost always are anyway!
Change-Id: I37cce9d4de76579084b9f64df881b5ec6e6b3efd
diff --git a/linker/linker_globals.cpp b/linker/linker_globals.cpp
index c3a3bcd..0d820b6 100644
--- a/linker/linker_globals.cpp
+++ b/linker/linker_globals.cpp
@@ -61,10 +61,12 @@
if (get_application_target_sdk_version() < target_sdk_version) {
android::base::StringAppendF(&result,
- " and will not work when the app moves to API level %d or later "
+ " and will not work when the app moves to "
+ "targetSdkVersion %d or later "
"(see https://android.googlesource.com/platform/bionic/+/main/"
"android-changes-for-ndk-developers.md); "
- "allowing for now because this app's target API level is still %d",
+ "allowing for now because this app's "
+ "targetSdkVersion is still %d",
target_sdk_version,
get_application_target_sdk_version());
DL_WARN("Warning: %s", result.c_str());