- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_service_write.cpp
r81 r88 12 12 } 13 13 14 int fd = (int) arguments[1];14 int fd = static_cast<int>(reinterpret_cast<int64_t>(arguments[1])); 15 15 const void *buf = (const void *) convert_address(arguments[2]); 16 16 ssize_t count = (ssize_t) arguments[3]; … … 22 22 std::cout << "\n\t***** service : write *****" << std::endl; 23 23 std::cout << "\tfd : " << (unsigned int) fd << std::endl; 24 std::cout << "\tbuf : " << std::hex << (unsigned int) buf<< std::endl;24 std::cout << "\tbuf : " << std::hex << static_cast<int32_t>(reinterpret_cast<int64_t>(buf)) << std::endl; 25 25 //std::cout << "\tbuf : " << std::dec << (char *) buf << std::endl; 26 26 std::cout << "\tcount : " << std::dec << (unsigned int) count << std::endl; 27 std::cout << "\tresult : " << (unsigned int) result<< std::endl;27 std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; 28 28 std::cout << "\terrno : " << (unsigned int) error << std::endl; 29 29
Note: See TracChangeset
for help on using the changeset viewer.