Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1298

lustre needs to be built with #undef LIBCFS_DEBUG occasionally

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Minor
    • None
    • Lustre 2.0.0
    • None
    • Build.
    • 3
    • 10495

    Description

      When LIBCFS_DEBUG is not defined, neither will be ldlm_lock_debug.
      Unclear when this was introduced. 2008 seems like long ago.

      #ifdef LIBCFS_DEBUG
      #define ldlm_lock_debug(msgdata, mask, cdls, lock, fmt, a...) do {[...]
      #else /* !LIBCFS_DEBUG */

      1. define LDLM_DEBUG(lock, fmt, a...) ((void)0)
      2. define LDLM_ERROR(lock, fmt, a...) ((void)0)
      3. define ldlm_lock_debuf(cdls, level, lock, file, func, line, fmt, a...) \
        ((void)0)
        #endif

      10beeaac (nikita 2008-10-18 15:13:21 +0000 927) # define ldlm_lock_debuf(cdls, level, lock, file, func, line, fmt, a...) \
      10beeaac (nikita 2008-10-18 15:13:21 +0000 928) ((void)0)

      Attachments

        Activity

          People

            wc-triage WC Triage
            bkorb Bruce Korb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: