瀏覽代碼

libobs: fix warning when logging the cpu speed

Speed is a DWORD and should be printed as %ld.  This will keep mingw
happy and warning free
martell 10 年之前
父節點
當前提交
9dd542f4fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-windows.c

+ 1 - 1
libobs/obs-windows.c

@@ -112,7 +112,7 @@ static void log_processor_info(void)
 	status = RegQueryValueExW(key, L"~MHz", NULL, NULL, (LPBYTE)&speed,
 			&size);
 	if (status == ERROR_SUCCESS)
-		blog(LOG_INFO, "CPU Speed: %dMHz", speed);
+		blog(LOG_INFO, "CPU Speed: %ldMHz", speed);
 
 	RegCloseKey(key);
 }