spa_history_log
extern int spa_history_log(spa_t *spa, const char *his_buf);
error = spa_history_log(spa, message);
(void) spa_history_log(spa, buf);