---
name: "umad_debug"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/umad_debug"
---

# umad\_debug(3)

set debug level

## NAME

umad\_debug - set debug level

## SYNOPSIS

```
#include <infiniband/umad.h>

int umad_debug(int level);
```

## DESCRIPTION

**umad\_debug()** sets the umad library internal debug level to *level.* The following debug levels are supported: 0 - no debug (the default), 1 - basic debug information, 2 - verbose debug information. Negative values are ignored in terms of set. Note that the current debug level can be queried by passing a negative value as *level.*

## RETURN VALUE

**umad\_debug()** returns the actual debug level.

## AUTHORS

- Hal Rosenstock \<halr@voltaire.com\>

  - Dotan Barak \<dotanb@mellanox.co.il\>
