Use matching signedness in format strings

Either cast the variable or change the format string to match the
signedness.
This commit is contained in:
Christian Kellner
2019-03-21 13:50:26 +01:00
committed by Alex Smith
parent 0eb59fc848
commit 45ba5bc4c4
3 changed files with 6 additions and 6 deletions

View File

@@ -414,7 +414,7 @@ int main(int argc, char *argv[])
break;
default:
LOG_ERROR("Currently unsupported GPU vendor 0x%04x, doing nothing!\n",
(short)info.vendor);
(unsigned short)info.vendor);
break;
}
@@ -454,7 +454,7 @@ int main(int argc, char *argv[])
break;
default:
LOG_ERROR("Currently unsupported GPU vendor 0x%04x, doing nothing!\n",
(short)info.vendor);
(unsigned short)info.vendor);
print_usage_and_exit();
break;
}