[Tizen-submit] 8158: Changes to Tizen/capi-system-info

noreply at tizen.org noreply at tizen.org
Wed Aug 14 20:37:59 GMT 2013


Hi,
Anas Nashif have made the following changes to capi-system-info in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #8158

  submit:       Tizen:build/capi-system-info(cleanup) -> Tizen


Message:
Submitter: Anas Nashif <anas.nashif at intel.com>
Comments: Fix SystemInfoDeviceCapability
Git project: platform/core/api/system-info
Tag: submit/tizen/20130814.203958
Commit: b0b1050dca8ecf8d0778025ceebb29b32c33ff32 Fix SystemInfoDeviceCapability

State:   new        2013-08-14T13:34:40 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- capi-system-info.spec
+++ capi-system-info.spec
@@ -2,7 +2,7 @@
 Summary:    A System Information library in SLP C API
 Version: 0.1.14
 Release:    0
-VCS:        platform/core/api/system-info#submit/tizen/20130710.102638-0-gf931f9059ee982c3f1bca2e5563fac5e1ff168a5
+VCS:        platform/core/api/system-info#submit/tizen/20130814.203958-0-gb0b1050dca8ecf8d0778025ceebb29b32c33ff32
 Group:      System/API
 License:    Apache-2.0 and IEFT RFC Collection
 Source0:    %{name}-%{version}.tar.gz

other changes:
--------------

++++++ capi-system-info-0.1.14.tar.gz
--- src/system_info_platform.c
+++ src/system_info_platform.c
@@ -205,7 +205,7 @@
 		return SYSTEM_INFO_ERROR_IO_ERROR;
 	} else {
 		while (fgets(str, MAXBUFSIZE, info)) {
-			if (strcasestr(str, "VERSION_ID")) {
+			if (strcasestr(str, "VERSION")) {
 				name = strchr(str, '=');
 				name += 2;
 				tmpStrlen = strlen(name);
@@ -246,7 +246,7 @@
 		return SYSTEM_INFO_ERROR_IO_ERROR;
 	} else {
 		while (fgets(str, MAXBUFSIZE, info)) {
-			if (strcasestr(str, "NAME")) {
+			if (strcasestr(str, "PRETTY_NAME")) {
 				name = strchr(str, '=');
 				name += 2;
 				tmpStrlen = strlen(name);
@@ -291,8 +291,8 @@
 		return SYSTEM_INFO_ERROR_IO_ERROR;
 	} else {
 		while (fgets(str, MAXBUFSIZE, info)) {
-			if (strcasestr(str, "VERSION")) {
-				name = strchr(str, ',');
+			if (strcasestr(str, "VERSION_ID")) {
+				name = strchr(str, '=');
 				name += 2;
 				tmpStrlen = strlen(name);
 
@@ -383,6 +383,9 @@
 				} else if (!(strncmp("x86", name+2, strlen("x86")))) {
 					strncpy(tmpStr, name+2, strlen("x86"));
 					tmpStr[strlen("x86")] = '\0';
+				} else if (!(strncmp("x86_64", name+2, strlen("x86_64")))) {
+					strncpy(tmpStr, name+2, strlen("x86_64"));
+					tmpStr[strlen("x86_64")] = '\0';
 				}
 			} else
 				continue;
@@ -398,7 +401,6 @@
 		}
 
 		CORE_CPU_ARCH = strdup(tmpStr);
-
 		if (CORE_CPU_ARCH == NULL) {
 			LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
 			fclose(cpuinfo);
@@ -426,7 +428,7 @@
 		return SYSTEM_INFO_ERROR_IO_ERROR;
 	} else {
 		/* The target and the emulator uses the field "Features" and "flags" in /proc/cpuinfo */
-		if (system_info_get_system_info_model_type() != SYSTEM_INFO_MODEL_TYPE_EMULATOR)
+		if (system_info_get_system_info_model_type() == SYSTEM_INFO_MODEL_TYPE_EMULATOR)
 			snprintf(tmpStr, strlen("Features"), "Features");
 		else
 			snprintf(tmpStr, strlen("flags"), "flags");
@@ -438,6 +440,10 @@
 					CORE_FPU_ARCH = strdup("vfpv3");
 				else if (strstr(name+2, "vfpv2"))
 					CORE_FPU_ARCH = strdup("vfpv2");
+                else if (strstr(name+2, "sse4_2"))
+					CORE_FPU_ARCH = strdup("sse4_2");
+                else if (strstr(name+2, "sse4_1"))

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list