return EINVAL;
}
- s_config->sc_out_buffer_addr = &s_config->sc_buffer;
- s_config->sc_out_size_addr = &s_config->sc_size;
- ret = __stack_snapshot_with_config(STACKSHOT_CONFIG_TYPE, s_config, sizeof(stackshot_config_t));
+ s_config->sc_out_buffer_addr = (uintptr_t)&s_config->sc_buffer;
+ s_config->sc_out_size_addr = (uintptr_t)&s_config->sc_size;
+ ret = __stack_snapshot_with_config(STACKSHOT_CONFIG_TYPE, (uintptr_t)s_config, sizeof(stackshot_config_t));
if (ret != 0) {
ret = errno;