Keystore2: Fix some log messages.
Some multi line log messages were missing escape characters on their
line breaks.
Test: N/A
Change-Id: I3903b8a5ddd76d4e8ed379b3d42dc55942bbd98f
diff --git a/keystore2/src/enforcements.rs b/keystore2/src/enforcements.rs
index ade4751..cb6a266 100644
--- a/keystore2/src/enforcements.rs
+++ b/keystore2/src/enforcements.rs
@@ -450,7 +450,7 @@
KeyParameterValue::Algorithm(Algorithm::RSA)
| KeyParameterValue::Algorithm(Algorithm::EC) => {
return Err(Error::Km(Ec::UNSUPPORTED_PURPOSE)).context(
- "In authorize_create: public operations on asymmetric keys are not
+ "In authorize_create: public operations on asymmetric keys are not \
supported.",
);
}
@@ -566,8 +566,7 @@
// if both NO_AUTH_REQUIRED and USER_SECURE_ID tags are present, return error
if !user_secure_ids.is_empty() && no_auth_required {
return Err(Error::Km(Ec::INVALID_KEY_BLOB)).context(
- "In authorize_create: key has both NO_AUTH_REQUIRED
- and USER_SECURE_ID tags.",
+ "In authorize_create: key has both NO_AUTH_REQUIRED and USER_SECURE_ID tags.",
);
}
@@ -576,8 +575,8 @@
|| (user_auth_type.is_none() && !user_secure_ids.is_empty())
{
return Err(Error::Km(Ec::KEY_USER_NOT_AUTHENTICATED)).context(
- "In authorize_create: Auth required, but either auth type or secure ids
- are not present.",
+ "In authorize_create: Auth required, but either auth type or secure ids \
+ are not present.",
);
}
@@ -587,8 +586,7 @@
&& op_params.iter().any(|kp| kp.tag == Tag::NONCE)
{
return Err(Error::Km(Ec::CALLER_NONCE_PROHIBITED)).context(
- "In authorize_create, NONCE is present,
- although CALLER_NONCE is not present",
+ "In authorize_create, NONCE is present, although CALLER_NONCE is not present",
);
}
diff --git a/keystore2/src/maintenance.rs b/keystore2/src/maintenance.rs
index 9925e42..c0f1e1e 100644
--- a/keystore2/src/maintenance.rs
+++ b/keystore2/src/maintenance.rs
@@ -235,7 +235,7 @@
}
_ => {
return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)).context(
- "In migrate_key_namespace:
+ "In migrate_key_namespace: \
Source domain must be one of APP, SELINUX, or KEY_ID.",
)
}
@@ -249,7 +249,7 @@
}
_ => {
return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)).context(
- "In migrate_key_namespace:
+ "In migrate_key_namespace: \
Destination domain must be one of APP or SELINUX.",
)
}