aboutsummaryrefslogtreecommitdiff
path: root/lib/pci_caps.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-04-23 10:55:02 +0100
committerGitHub <noreply@github.com>2021-04-23 10:55:02 +0100
commitc5acc0677cc8043d616edcc65b6c24063077953a (patch)
treed36feece08fa98acb73fd49930e7aa0f4fea2795 /lib/pci_caps.c
parent0cdf7d25b54b26ab4078df956b0b5cdc4dc31b57 (diff)
downloadlibvfio-user-c5acc0677cc8043d616edcc65b6c24063077953a.zip
libvfio-user-c5acc0677cc8043d616edcc65b6c24063077953a.tar.gz
libvfio-user-c5acc0677cc8043d616edcc65b6c24063077953a.tar.bz2
cap_write_pm(): remove assert() (#450)
Replace client-triggerable assert() with a log message. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/pci_caps.c')
-rw-r--r--lib/pci_caps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pci_caps.c b/lib/pci_caps.c
index f523b98..50b1ec3 100644
--- a/lib/pci_caps.c
+++ b/lib/pci_caps.c
@@ -141,8 +141,8 @@ cap_write_pm(vfu_ctx_t *vfu_ctx, struct pci_cap *cap, char * buf,
if (count != sizeof(struct pc)) {
return ERROR_INT(EINVAL);
}
- assert(false); /* FIXME implement */
- break;
+ vfu_log(vfu_ctx, LOG_ERR, "FIXME: write to pmcp::pc unimplemented");
+ return ERROR_INT(ENOTSUP);
case offsetof(struct pmcap, pmcs):
if (count != sizeof(struct pmcs)) {
return ERROR_INT(EINVAL);