initial commit to the debug branch

This commit is contained in:
Fufu Fang 2024-05-02 05:39:07 +01:00
parent d4c7d8c92a
commit 63455c54cc
No known key found for this signature in database
GPG Key ID: 8A4CB08B0A7E27CE
3 changed files with 7 additions and 1 deletions

View File

@ -139,6 +139,9 @@ fs_readdir(const char *path, void *buf, fuse_fill_dir_t dir_add,
(void) fi; (void) fi;
LinkTable *linktbl; LinkTable *linktbl;
static int j = 0;
lprintf(debug, "\n!!!!Calling fs_readdir for the %d time!!!!\n", j)
j++;
linktbl = path_to_Link_LinkTable_new(path); linktbl = path_to_Link_LinkTable_new(path);
if (!linktbl) { if (!linktbl) {
return -ENOENT; return -ENOENT;

View File

@ -644,6 +644,9 @@ LinkTable *LinkTable_new(const char *url)
curl_free(unescaped_path); curl_free(unescaped_path);
curl_easy_cleanup(c); curl_easy_cleanup(c);
static int i = 0;
lprintf(debug, "\n!!!!Calling LinkTable_new for the %d time!!!!\n", i)
i++;
LinkTable_print(linktbl); LinkTable_print(linktbl);
return linktbl; return linktbl;

View File

@ -20,7 +20,7 @@ typedef enum {
/** /**
* \brief The default log level * \brief The default log level
*/ */
#define DEFAULT_LOG_LEVEL fatal | error | warning | info #define DEFAULT_LOG_LEVEL fatal | error | warning | info | debug
/** /**
* \brief Get the log level from the environment. * \brief Get the log level from the environment.