cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

printf.h (738B)


      1/* SPDX-License-Identifier: MIT */
      2#ifndef __NVIF_PRINTF_H__
      3#define __NVIF_PRINTF_H__
      4#include <nvif/client.h>
      5#include <nvif/parent.h>
      6
      7#define NVIF_PRINT(l,o,f,a...) do {                                                                \
      8	struct nvif_object *_o = (o);                                                              \
      9	struct nvif_parent *_p = _o->parent;                                                       \
     10	_p->func->l(_o, "[%s/%08x:%s] "f"\n", _o->client->object.name, _o->handle, _o->name, ##a); \
     11} while(0)
     12
     13#ifndef NVIF_DEBUG_PRINT_DISABLE
     14#define NVIF_DEBUG(o,f,a...) NVIF_PRINT(debugf, (o), f, ##a)
     15#else
     16#define NVIF_DEBUG(o,f,a...)
     17#endif
     18
     19#define NVIF_ERROR(o,f,a...) NVIF_PRINT(errorf, (o), f, ##a)
     20#endif