Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ Temporary Items

# Bot token
.token

# CLion projects
.idea
4 changes: 2 additions & 2 deletions include/telebot-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@


#ifdef DEBUG
#define ERR(fmt, args...) printf("[ERROR][%s:%d]" fmt "\n", __func__, __LINE__, ##args)
#define DBG(fmt, args...) printf("[DEBUG][%s:%d]" fmt "\n", __func__, __LINE__, ##args)
#define ERR(fmt, args...) fprintf(stderr, "[ERROR][%s:%d]" fmt "\n", __func__, __LINE__, ##args)
#define DBG(fmt, args...) fprintf(stderr, "[DEBUG][%s:%d]" fmt "\n", __func__, __LINE__, ##args)
#else
#define ERR(x, ...)
#define DBG(x, ...)
Expand Down
2 changes: 1 addition & 1 deletion src/telebot-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ telebot_error_e telebot_start(telebot_update_cb_f update_cb)

ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (ret != 0) {
ERR("Failed to set pthread detatched attribute, error: %d", errno);
ERR("Failed to set pthread detached attribute, error: %d", errno);
return TELEBOT_ERROR_OPERATION_FAILED;
}

Expand Down