BPF loader message nits (#5870)
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
extern crate solana_sdk;
|
||||
use solana_sdk::entrypoint::SUCCESS;
|
||||
use solana_sdk::info;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
@ -48,6 +47,5 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
);
|
||||
assert_eq!(x, 0x0001_ffff_ffff_ffff_fffe);
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
@ -100,6 +100,5 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
assert_eq!(v.len(), ITERS);
|
||||
}
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
extern crate solana_sdk;
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
use solana_sdk::entrypoint::SUCCESS;
|
||||
use solana_sdk::info;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
@ -15,6 +14,5 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
LittleEndian::write_i16(&mut buf, -5_000);
|
||||
assert_eq!(-5_000, LittleEndian::read_i16(&buf));
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
@ -16,6 +16,5 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
info!(0xff, 0, 0, 0, sum);
|
||||
assert_eq!(sum, ITERS as u64);
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
@ -24,6 +24,5 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
}
|
||||
);
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
@ -54,7 +54,6 @@ fn process_instruction(program_id: &Pubkey, accounts: &mut [AccountInfo], data:
|
||||
panic!();
|
||||
}
|
||||
|
||||
info!("Success");
|
||||
SUCCESS
|
||||
}
|
||||
|
||||
|
@ -20,5 +20,6 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
|
||||
let test_dep = TestDep::new(&data, 1, 2, 3, 4, 5);
|
||||
info!(0, 0, 0, 0, test_dep.thirty);
|
||||
assert!(test_dep.thirty == 30);
|
||||
|
||||
SUCCESS
|
||||
}
|
||||
|
Reference in New Issue
Block a user