diff options
Diffstat (limited to 'lib/include/nvif/os.h')
-rw-r--r-- | lib/include/nvif/os.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h index 3ed79cc12..84817babc 100644 --- a/lib/include/nvif/os.h +++ b/lib/include/nvif/os.h @@ -634,12 +634,14 @@ struct device_driver { struct device { struct device_driver *driver; + char name[64]; }; -#define dev_crit(d,f,a...) printf("nouveau: "f, ##a) -#define dev_err(d,f,a...) dev_crit((d), f, ##a) -#define dev_warn(d,f,a...) dev_crit((d), f, ##a) -#define dev_info(d,f,a...) dev_crit((d), f, ##a) +#define dev_crit(d,f,a...) printf("nouveau %s: "f, (d)->name, ##a) +#define dev_err(d,f,a...) dev_crit((d), f, ##a) +#define dev_warn(d,f,a...) dev_crit((d), f, ##a) +#define dev_notice(d,f,a...) dev_crit((d), f, ##a) +#define dev_info(d,f,a...) dev_crit((d), f, ##a) /****************************************************************************** * PM runtime |