drivers/crypto: use snprintf return value correctly