use warn! for ffi-usage-errors

This commit is contained in:
B. Petersen
2020-10-09 00:22:29 +02:00
parent 3a993a4b77
commit da727740ab

View File

@@ -1071,7 +1071,7 @@ pub unsafe extern "C" fn dc_set_chat_protection(
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
s
} else {
eprintln!("bad protect-value for dc_set_chat_protection()");
warn!(ctx, "bad protect-value for dc_set_chat_protection()");
return 0;
};
@@ -1207,6 +1207,7 @@ pub unsafe extern "C" fn dc_create_group_chat(
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
s
} else {
warn!(ctx, "bad protect-value for dc_create_group_chat()");
return 0;
};